public class MBeanUtils extends Object
| Constructor and Description |
|---|
MBeanUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
init(MBeanServer server)
Initialize the static data.
|
static void |
registerStandardMBean(Class interfaceClass,
Object instance,
ObjectName mbeanName,
boolean replace)
Create and register a standard MBean with the main MBean Server.
|
static void |
unregisterMBean(ObjectName mbeanName)
Unregister an MBean from the MBean server.
|
public static void init(MBeanServer server)
server - The MBean Server reference to be used.public static void registerStandardMBean(Class interfaceClass, Object instance, ObjectName mbeanName, boolean replace) throws JBIException
interfaceClass - the MBean interface implemented by the instance.instance - the MBean implementation instance.mbeanName - the JMX ObjectName for the MBean.replace - indicates whether an existing registration should be
replaced or cause an error. If true, an existing registration should be
replaced; if false, an existing registration should cause an error.JBIException - If the MBean creation or registration
fails.public static void unregisterMBean(ObjectName mbeanName) throws JBIException
mbeanName - the JMX ObjectName for the MBean.JBIException - if the unregistration fails.Copyright © 2011-2016 OpenESB Community. All Rights Reserved.