org.apache.servicemix.common.management
Class MBeanServerHelper
java.lang.Object
org.apache.servicemix.common.management.MBeanServerHelper
public class MBeanServerHelper
- extends java.lang.Object
Helper methods to register and unregister objects with a JMX MBeanServer
|
Method Summary |
static javax.management.ObjectName |
register(javax.management.MBeanServer server,
javax.management.ObjectName name,
java.lang.Object object)
Registers an object with the MBean server using the specified object name. |
static void |
unregister(javax.management.MBeanServer server,
javax.management.ObjectName name)
Unregister the object with the specified name from the MBean server |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBeanServerHelper
public MBeanServerHelper()
register
public static javax.management.ObjectName register(javax.management.MBeanServer server,
javax.management.ObjectName name,
java.lang.Object object)
throws javax.jbi.JBIException
- Registers an object with the MBean server using the specified object name. If another object is already registered,
this method will first unregister it. The method also returns the final object name after registration, because
some MBean servers will alter the name during the registration process
- Parameters:
server - the MBean servername - the object nameobject - the object to be registered
- Returns:
- the final object name after registration
- Throws:
javax.jbi.JBIException - if the MBean server is null or if a problem occurs during MBean registration
unregister
public static void unregister(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws javax.jbi.JBIException
- Unregister the object with the specified name from the MBean server
- Parameters:
server - the mbean servername - the object name
- Throws:
javax.jbi.JBIException - if the MBean server is null or if there is a problem unregistering the MBean
Copyright © 2005-2012 FuseSource. All Rights Reserved.