public class MBeanServerHelper
extends java.lang.Object
| Constructor and Description |
|---|
MBeanServerHelper() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public static javax.management.ObjectName register(javax.management.MBeanServer server,
javax.management.ObjectName name,
java.lang.Object object)
throws javax.jbi.JBIException
server - the MBean servername - the object nameobject - the object to be registeredjavax.jbi.JBIException - if the MBean server is null or if a problem occurs during MBean registrationpublic static void unregister(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws javax.jbi.JBIException
server - the mbean servername - the object namejavax.jbi.JBIException - if the MBean server is null or if there is a problem unregistering the MBeanCopyright © 2005-2014 FuseSource. All Rights Reserved.