Package org.datanucleus.management
Class Mx4jManagementServer
- java.lang.Object
-
- org.datanucleus.management.Mx4jManagementServer
-
- All Implemented Interfaces:
ManagementServer
public class Mx4jManagementServer extends Object implements ManagementServer
Wrapper for the MX4J JMX server.
-
-
Constructor Summary
Constructors Constructor Description Mx4jManagementServer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getMBeanServer()
void
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 Detail
-
start
public 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 of the configuration.- Specified by:
start
in interfaceManagementServer
-
stop
public 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 of the configuration.- Specified by:
stop
in interfaceManagementServer
-
registerMBean
public void registerMBean(Object mbean, String name)
Register a MBean into the MBeanServer- Specified by:
registerMBean
in interfaceManagementServer
- Parameters:
mbean
- the MBean instancename
- the mbean name
-
unregisterMBean
public void unregisterMBean(String name)
Unregister a MBean from the MBeanServer- Specified by:
unregisterMBean
in interfaceManagementServer
- Parameters:
name
- the mbean name
-
getMBeanServer
public Object getMBeanServer()
-
-