Package org.datanucleus.management
Class PlatformManagementServer
java.lang.Object
org.datanucleus.management.PlatformManagementServer
- All Implemented Interfaces:
ManagementServer
Wrapper for the JRE "Platform" JMX server.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
registerMBean
(Object mbean, String name) Register a MBean into the MBeanServervoid
start()
Start the Management Server.void
stop()
Stop the Management Server.void
unregisterMBean
(String name) Unregister a MBean from the MBeanServer
-
Field Details
-
mbeanServer
MBeanServer mbeanServer
-
-
Constructor Details
-
PlatformManagementServer
public PlatformManagementServer()
-
-
Method Details
-
start
public void start()Description copied from interface:ManagementServer
Start the Management Server. If this operation is invoked while the server is started, this operation is ignored. This operation can also connect to a remote MBeanServer, instead of creating a new MBeanServer instance. This depends on the configuration.- Specified by:
start
in interfaceManagementServer
-
stop
public void stop()Description copied from interface:ManagementServer
Stop the Management Server. If this operation is invoked while the server is stop, this operation is ignored. This operation can also disconnect from a remote MBeanServer, instead of destroying a MBeanServer instance. This depends on the configuration.- Specified by:
stop
in interfaceManagementServer
-
registerMBean
Register a MBean into the MBeanServer- Specified by:
registerMBean
in interfaceManagementServer
- Parameters:
mbean
- the MBean instancename
- the mbean name
-
unregisterMBean
Unregister a MBean from the MBeanServer- Specified by:
unregisterMBean
in interfaceManagementServer
- Parameters:
name
- the mbean name
-