Package org.apache.cxf.management.jmx
Class InstrumentationManagerImpl
java.lang.Object
org.apache.cxf.management.jmx.InstrumentationManagerImpl
- All Implemented Interfaces:
BusLifeCycleListener,InstrumentationManager
public class InstrumentationManagerImpl
extends Object
implements InstrumentationManager, BusLifeCycleListener
The manager class for the JMXManagedComponent which hosts the JMXManagedComponents.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBus()Get the MBeanServer which hosts managed components NOTE: if the configuration is not set the JMXEnabled to be true, this method will return nullvoidinit()voidInvoked when theBushas been initialized.booleanvoidInvoked after theBusis shutdown.voidInvoked before theBusis shutdown.voidregister()Deprecated.voidregister(Object obj, ObjectName name) Registers object with management infrastructure with a specific name.voidregister(Object obj, ObjectName name, boolean forceRegistration) Registers object with management infrastructure with a specific name.Register a component with management infrastructure.register(ManagedComponent i, boolean forceRegistration) Register a component with management infrastructure.voidvoidsetEnabled(boolean enabled) voidvoidsetServer(MBeanServer server) voidvoidvoidshutdown()Cleans up and shutsdown management infrastructure.voidunregister(ObjectName name) Unregisters component based upon registered namevoidunregister(ManagedComponent component) Unregisters component with management infrastructure
-
Constructor Details
-
InstrumentationManagerImpl
public InstrumentationManagerImpl() -
InstrumentationManagerImpl
-
-
Method Details
-
getBus
-
setBus
-
setServerName
-
setUsePlatformMBeanServer
-
setEnabled
public void setEnabled(boolean enabled) -
isEnabled
public boolean isEnabled() -
register
Deprecated. -
init
@PostConstruct public void init() -
register
Description copied from interface:InstrumentationManagerRegisters object with management infrastructure with a specific name. Object must be annotated or implement standard MBean interface.- Specified by:
registerin interfaceInstrumentationManager- Throws:
JMException
-
register
Description copied from interface:InstrumentationManagerRegisters object with management infrastructure with a specific name. Object must be annotated or implement standard MBean interface.- Specified by:
registerin interfaceInstrumentationManagerforceRegistration- if set to true, then component will be registered despite existing component.- Throws:
JMException
-
register
Description copied from interface:InstrumentationManagerRegister a component with management infrastructure. Component will supply registration name.- Specified by:
registerin interfaceInstrumentationManager- Returns:
- name used to register the component
- Throws:
JMException
-
register
Description copied from interface:InstrumentationManagerRegister a component with management infrastructure. Component will supply registration name.- Specified by:
registerin interfaceInstrumentationManagerforceRegistration- if set to true, then component will be registered despite existing component.- Returns:
- name used to register the component
- Throws:
JMException
-
unregister
Description copied from interface:InstrumentationManagerUnregisters component with management infrastructure- Specified by:
unregisterin interfaceInstrumentationManager- Throws:
JMException
-
unregister
Description copied from interface:InstrumentationManagerUnregisters component based upon registered name- Specified by:
unregisterin interfaceInstrumentationManager- Throws:
JMException
-
getMBeanServer
Description copied from interface:InstrumentationManagerGet 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:
getMBeanServerin interfaceInstrumentationManager- Returns:
- the MBeanServer
-
setServer
-
shutdown
public void shutdown()Description copied from interface:InstrumentationManagerCleans up and shutsdown management infrastructure.- Specified by:
shutdownin interfaceInstrumentationManager
-
initComplete
public void initComplete()Description copied from interface:BusLifeCycleListenerInvoked when theBushas been initialized.- Specified by:
initCompletein interfaceBusLifeCycleListener
-
preShutdown
public void preShutdown()Description copied from interface:BusLifeCycleListenerInvoked before theBusis shutdown.- Specified by:
preShutdownin interfaceBusLifeCycleListener
-
postShutdown
public void postShutdown()Description copied from interface:BusLifeCycleListenerInvoked after theBusis shutdown.- Specified by:
postShutdownin interfaceBusLifeCycleListener
-
getPersistentBusId
- Specified by:
getPersistentBusIdin interfaceInstrumentationManager
-
setPersistentBusId
- Specified by:
setPersistentBusIdin interfaceInstrumentationManager
-