Package org.datanucleus.management
Interface ManagementServer
- All Known Implementing Classes:
PlatformManagementServer
public interface ManagementServer
Management Server for MBeans.
Plugin Extension Point: org.datanucleus.management_server
The implementation of this class must have a default public constructor
-
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
-
Method Details
-
start
void start()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. -
stop
void stop()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. -
registerMBean
Register a MBean into the MBeanServer- Parameters:
mbean
- the MBean instancename
- the mbean name
-
unregisterMBean
Unregister a MBean from the MBeanServer- Parameters:
name
- the mbean name
-