public class DefaultManagementMBeanAssembler extends ServiceSupport implements ManagementMBeanAssembler
ModelMBean which can be used
to register the object in JMX. The assembler is capable of using the Camel JMX annotations to
gather the list of JMX operations and attributes.| Modifier and Type | Field and Description |
|---|---|
protected MBeanInfoAssembler |
assembler |
protected CamelContext |
camelContext |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
DefaultManagementMBeanAssembler(CamelContext camelContext) |
| Modifier and Type | Method and Description |
|---|---|
ModelMBean |
assemble(MBeanServer mBeanServer,
Object obj,
ObjectName name)
Assemble the
ModelMBean. |
protected void |
doStart()
Implementations override this method to support customized start/stop.
|
protected void |
doStop()
Implementations override this method to support customized start/stop.
|
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendprotected final MBeanInfoAssembler assembler
protected final CamelContext camelContext
public DefaultManagementMBeanAssembler(CamelContext camelContext)
public ModelMBean assemble(MBeanServer mBeanServer, Object obj, ObjectName name) throws JMException
ManagementMBeanAssemblerModelMBean.assemble in interface ManagementMBeanAssemblermBeanServer - the mbean serverobj - the objectname - the object name to use in JMXModelMBean, or null if not possible to assemble an MBeanJMException - is thrown if error assembling the mbeanprotected void doStart() throws Exception
ServiceSupportServiceSupport.doStop() for more details.doStart in class ServiceSupportExceptionServiceSupport.doStop()protected void doStop() throws Exception
ServiceSupportServiceSupport.doStop() method when
the service is being stopped. This method will also be invoked
if the service is still in uninitialized state (eg has not
been started). The method is always called to allow the service
to do custom logic when the service is being stopped, such as when
CamelContext is shutting down.doStop in class ServiceSupportExceptionServiceSupport.doStart()Apache Camel