public class InstrumentationManagerImpl extends JMXConnectorPolicyType implements InstrumentationManager, BusLifeCycleListener
daemon, enabled, jmxServiceURL, threaded
Constructor and Description |
---|
InstrumentationManagerImpl() |
InstrumentationManagerImpl(Bus bus) |
Modifier and Type | Method and Description |
---|---|
Bus |
getBus() |
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
|
String |
getPersistentBusId() |
void |
init() |
void |
initComplete()
Invoked when the
Bus has been initialized. |
void |
postShutdown()
Invoked after the
Bus is shutdown. |
void |
preShutdown()
Invoked before the
Bus is shutdown. |
void |
register()
Deprecated.
|
ObjectName |
register(ManagedComponent i)
Register a component with management infrastructure.
|
ObjectName |
register(ManagedComponent i,
boolean forceRegistration)
Register a component with management infrastructure.
|
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 |
setBus(Bus bus) |
void |
setCreateMBServerConnectorFactory(boolean createMBServerConnectorFactory) |
void |
setPersistentBusId(String id) |
void |
setServer(MBeanServer server) |
void |
setServerName(String s) |
void |
setUsePlatformMBeanServer(Boolean flag) |
void |
shutdown()
Cleans up and shutsdown management infrastructure.
|
void |
unregister(ManagedComponent component)
Unregisters component with management infrastructure
|
void |
unregister(ObjectName name)
Unregisters component based upon registered name
|
getJMXServiceURL, isDaemon, isEnabled, isThreaded, setDaemon, setEnabled, setJMXServiceURL, setThreaded, unsetJMXServiceURL
public InstrumentationManagerImpl()
public InstrumentationManagerImpl(Bus bus)
public Bus getBus()
public void setBus(Bus bus)
public void setServerName(String s)
public void setCreateMBServerConnectorFactory(boolean createMBServerConnectorFactory)
public void setUsePlatformMBeanServer(Boolean flag)
@Deprecated public void register()
@PostConstruct public void init()
public void register(Object obj, ObjectName name) throws JMException
InstrumentationManager
register
in interface InstrumentationManager
JMException
public void register(Object obj, ObjectName name, boolean forceRegistration) throws JMException
InstrumentationManager
register
in interface InstrumentationManager
forceRegistration
- if set to true, then component will be registered despite existing component.JMException
public ObjectName register(ManagedComponent i) throws JMException
InstrumentationManager
register
in interface InstrumentationManager
JMException
public ObjectName register(ManagedComponent i, boolean forceRegistration) throws JMException
InstrumentationManager
register
in interface InstrumentationManager
forceRegistration
- if set to true, then component will be registered despite existing component.JMException
public void unregister(ManagedComponent component) throws JMException
InstrumentationManager
unregister
in interface InstrumentationManager
JMException
public void unregister(ObjectName name) throws JMException
InstrumentationManager
unregister
in interface InstrumentationManager
JMException
public MBeanServer getMBeanServer()
InstrumentationManager
getMBeanServer
in interface InstrumentationManager
public void setServer(MBeanServer server)
public void shutdown()
InstrumentationManager
shutdown
in interface InstrumentationManager
public void initComplete()
BusLifeCycleListener
Bus
has been initialized.initComplete
in interface BusLifeCycleListener
public void preShutdown()
BusLifeCycleListener
Bus
is shutdown.preShutdown
in interface BusLifeCycleListener
public void postShutdown()
BusLifeCycleListener
Bus
is shutdown.postShutdown
in interface BusLifeCycleListener
public String getPersistentBusId()
getPersistentBusId
in interface InstrumentationManager
public void setPersistentBusId(String id)
setPersistentBusId
in interface InstrumentationManager
Apache CXF