org.datanucleus.management.mx4j
Class Mx4jManagementServer

java.lang.Object
  extended by org.datanucleus.management.mx4j.Mx4jManagementServer
All Implemented Interfaces:
org.datanucleus.management.ManagementServer

public class Mx4jManagementServer
extends java.lang.Object
implements org.datanucleus.management.ManagementServer

Management Server starts and stops a Management Server. Starts a MBeanServer using MX4J Plugin Extension Point: org.datanucleus.management_server


Constructor Summary
Mx4jManagementServer()
           
 
Method Summary
 java.lang.Object getMBeanServer()
          Acessor for underlying Management Server
 void registerMBean(java.lang.Object mbean, java.lang.String name)
          Register a MBean into the MBeanServer
 void start()
          Start the Management Server.
 void stop()
          Stop the Management Server.
 void unregisterMBean(java.lang.String name)
          Unregister a MBean from the MBeanServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mx4jManagementServer

public Mx4jManagementServer()
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 interface org.datanucleus.management.ManagementServer

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 interface org.datanucleus.management.ManagementServer

registerMBean

public void registerMBean(java.lang.Object mbean,
                          java.lang.String name)
Register a MBean into the MBeanServer

Specified by:
registerMBean in interface org.datanucleus.management.ManagementServer
Parameters:
mbean - the MBean instance
name - the mbean name

unregisterMBean

public void unregisterMBean(java.lang.String name)
Unregister a MBean from the MBeanServer

Specified by:
unregisterMBean in interface org.datanucleus.management.ManagementServer
Parameters:
name - the mbean name

getMBeanServer

public java.lang.Object getMBeanServer()
Acessor for underlying Management Server



Copyright © 2011. All Rights Reserved.