public class JmxMBeanAgent extends Object
Constructor and Description |
---|
JmxMBeanAgent() |
Modifier and Type | Method and Description |
---|---|
static void |
registerMBean(ManagementObject aMBean,
Object aMBeanServerO)
Register an MBean with the MBeanServer.
|
static void |
unregisterMBean(ManagementObject aMBean,
Object aMBeanServerO)
Unregister an MBean from the MBeanServer.
|
public static void registerMBean(ManagementObject aMBean, Object aMBeanServerO)
aMBean
- the MBean to registeraMBeanServerO
- server to register with. If null, the platform MBeanServer will be used if we are
running under Java 1.5. Earlier versions of Java did not have a platform MBeanServer;
in that case, this method will do nothing.public static void unregisterMBean(ManagementObject aMBean, Object aMBeanServerO)
aMBean
- the MBean to registeraMBeanServerO
- server to unregister from. If null, the platform MBeanServer will be used if we are
running under Java 1.5. Earlier versions of Java did not have a platform MBeanServer;
in that case, this method will do nothing.Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.