org.apache.camel.spi
Interface InstrumentationAgent

All Superinterfaces:
Service
All Known Implementing Classes:
InstrumentationAgentImpl

public interface InstrumentationAgent
extends Service


Method Summary
 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
 CamelNamingStrategy getNamingStrategy()
           
 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 unregister(ObjectName name)
          Unregisters component based upon registered name
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Method Detail

register

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

Parameters:
obj -
name -
Throws:
JMException

register

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

Parameters:
obj -
name -
forceRegistration - if set to true, then component will be registered despite existing component.
Throws:
JMException

unregister

void unregister(ObjectName name)
                throws JMException
Unregisters component based upon registered name

Parameters:
name -
Throws:
JMException

getMBeanServer

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

Returns:
the MBeanServer

getNamingStrategy

CamelNamingStrategy getNamingStrategy()


Copyright © 2008 IONA Open Source Community. All Rights Reserved.