org.apache.camel.management
Class InstrumentationAgentImpl

java.lang.Object
  extended by org.apache.camel.management.InstrumentationAgentImpl
All Implemented Interfaces:
CamelContextAware, InstrumentationAgent

public class InstrumentationAgentImpl
extends Object
implements InstrumentationAgent, CamelContextAware


Constructor Summary
InstrumentationAgentImpl()
           
 
Method Summary
 CamelContext getCamelContext()
           
 MBeanServer getMBeanServer()
          Get the MBeanServer which hosts managed components NOTE: if the configuration is not set the JMXEnabled to be true, this method will return null
 void register(Object obj, ObjectName name)
          Registers object with management infrastructure with a specific name.
 void register(Object obj, ObjectName name, boolean forceRegistration)
          Registers object with management infrastructure with a specific name.
 void setCamelContext(CamelContext camelContext)
          Injects the CamelContext
 void setMBeanServer(MBeanServer server)
           
 void start()
           
 void stop()
           
 void unregister(ObjectName name)
          Unregisters component based upon registered name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstrumentationAgentImpl

public InstrumentationAgentImpl()
Method Detail

getCamelContext

public CamelContext getCamelContext()

setCamelContext

public void setCamelContext(CamelContext camelContext)
Description copied from interface: CamelContextAware
Injects the CamelContext

Specified by:
setCamelContext in interface CamelContextAware

setMBeanServer

public void setMBeanServer(MBeanServer server)

getMBeanServer

public MBeanServer getMBeanServer()
Description copied from interface: InstrumentationAgent
Get the MBeanServer which hosts managed components NOTE: if the configuration is not set the JMXEnabled to be true, this method will return null

Specified by:
getMBeanServer in interface InstrumentationAgent
Returns:
the MBeanServer

register

public void register(Object obj,
                     ObjectName name)
              throws JMException
Description copied from interface: InstrumentationAgent
Registers object with management infrastructure with a specific name. Object must be annotated or implement standard MBean interface.

Specified by:
register in interface InstrumentationAgent
Throws:
JMException

register

public void register(Object obj,
                     ObjectName name,
                     boolean forceRegistration)
              throws JMException
Description copied from interface: InstrumentationAgent
Registers object with management infrastructure with a specific name. Object must be annotated or implement standard MBean interface.

Specified by:
register in interface InstrumentationAgent
forceRegistration - if set to true, then component will be registered despite existing component.
Throws:
JMException

unregister

public void unregister(ObjectName name)
                throws JMException
Description copied from interface: InstrumentationAgent
Unregisters component based upon registered name

Specified by:
unregister in interface InstrumentationAgent
Throws:
JMException

start

public void start()

stop

public void stop()


Copyright © 2007 Apache Software Foundation. All Rights Reserved.