org.apache.camel.management
Class DefaultManagementMBeanAssembler

java.lang.Object
  extended by org.apache.camel.management.DefaultManagementMBeanAssembler
All Implemented Interfaces:
Service, ManagementMBeanAssembler

public class DefaultManagementMBeanAssembler
extends Object
implements ManagementMBeanAssembler, Service

An assembler to assemble a 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.

Version:

Field Summary
protected  org.slf4j.Logger log
           
 
Constructor Summary
DefaultManagementMBeanAssembler()
           
 
Method Summary
 ModelMBean assemble(MBeanServer mBeanServer, Object obj, ObjectName name)
          Assemble the ModelMBean.
 void start()
          Starts the service
 void stop()
          Stops the service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.slf4j.Logger log
Constructor Detail

DefaultManagementMBeanAssembler

public DefaultManagementMBeanAssembler()
Method Detail

assemble

public ModelMBean assemble(MBeanServer mBeanServer,
                           Object obj,
                           ObjectName name)
                    throws JMException
Description copied from interface: ManagementMBeanAssembler
Assemble the ModelMBean.

Specified by:
assemble in interface ManagementMBeanAssembler
Parameters:
mBeanServer - the mbean server
obj - the object
name - the object name to use in JMX
Returns:
the assembled ModelMBean, or null if not possible to assemble an MBean
Throws:
JMException - is thrown if error assembling the mbean

start

public void start()
           throws Exception
Description copied from interface: Service
Starts the service

Specified by:
start in interface Service
Throws:
Exception - is thrown if starting failed

stop

public void stop()
          throws Exception
Description copied from interface: Service
Stops the service

Specified by:
stop in interface Service
Throws:
Exception - is thrown if stopping failed


Apache Camel