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 TypeMethodDescriptionvoidregisterMBean(Object mbean, String name) Register a MBean into the MBeanServervoidstart()Start the Management Server.voidstop()Stop the Management Server.voidunregisterMBean(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:ManagementServerStart 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:
startin interfaceManagementServer
-
stop
public void stop()Description copied from interface:ManagementServerStop 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:
stopin interfaceManagementServer
-
registerMBean
Register a MBean into the MBeanServer- Specified by:
registerMBeanin interfaceManagementServer- Parameters:
mbean- the MBean instancename- the mbean name
-
unregisterMBean
Unregister a MBean from the MBeanServer- Specified by:
unregisterMBeanin interfaceManagementServer- Parameters:
name- the mbean name
-