org.apache.cxf.management
Interface InstrumentationManager

All Known Implementing Classes:
InstrumentationManagerImpl

public interface InstrumentationManager

InstrumentationManager interface for the instrumentations query, register and unregister


Method Summary
 javax.management.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
 java.lang.String getPersistentBusId()
           
 javax.management.ObjectName register(ManagedComponent component)
          Register a component with management infrastructure.
 javax.management.ObjectName register(ManagedComponent component, boolean forceRegistration)
          Register a component with management infrastructure.
 void register(java.lang.Object obj, javax.management.ObjectName name)
          Registers object with management infrastructure with a specific name.
 void register(java.lang.Object obj, javax.management.ObjectName name, boolean forceRegistration)
          Registers object with management infrastructure with a specific name.
 void setPersistentBusId(java.lang.String id)
           
 void shutdown()
          Cleans up and shutsdown management infrastructure.
 void unregister(ManagedComponent component)
          Unregisters component with management infrastructure
 void unregister(javax.management.ObjectName name)
          Unregisters component based upon registered name
 

Method Detail

register

javax.management.ObjectName register(ManagedComponent component)
                                     throws javax.management.JMException
Register a component with management infrastructure. Component will supply registration name.

Parameters:
component -
Returns:
name used to register the component
Throws:
javax.management.JMException

register

javax.management.ObjectName register(ManagedComponent component,
                                     boolean forceRegistration)
                                     throws javax.management.JMException
Register a component with management infrastructure. Component will supply registration name.

Parameters:
component -
forceRegistration - if set to true, then component will be registered despite existing component.
Returns:
name used to register the component
Throws:
javax.management.JMException

register

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

Parameters:
obj -
name -
Throws:
javax.management.JMException

register

void register(java.lang.Object obj,
              javax.management.ObjectName name,
              boolean forceRegistration)
              throws javax.management.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:
javax.management.JMException

unregister

void unregister(ManagedComponent component)
                throws javax.management.JMException
Unregisters component with management infrastructure

Parameters:
component -
Throws:
javax.management.JMException

unregister

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

Parameters:
name -
Throws:
javax.management.JMException

shutdown

void shutdown()
Cleans up and shutsdown management infrastructure.


getMBeanServer

javax.management.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

getPersistentBusId

java.lang.String getPersistentBusId()

setPersistentBusId

void setPersistentBusId(java.lang.String id)


Apache CXF