public final class MBeanUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getMBean(String jmxName,
Class<T> klass) |
static Object |
getMBeanAttribute(String objName,
String attribute) |
static MBeanServer |
registerServerMBean(Object mxBeanImplementor,
String objNameStr) |
static void |
unregisterServerMBean(Object mxBeanImplementor,
String objNameStr) |
public static MBeanServer registerServerMBean(Object mxBeanImplementor, String objNameStr) throws JMException
JMExceptionpublic static void unregisterServerMBean(Object mxBeanImplementor, String objNameStr) throws MalformedObjectNameException, InstanceNotFoundException, MBeanRegistrationException
@Nullable public static Object getMBeanAttribute(String objName, String attribute) throws JMException
JMExceptionpublic static <T> T getMBean(String jmxName, Class<T> klass) throws MalformedObjectNameException
MalformedObjectNameExceptionCopyright © 2019 OpenDaylight. All rights reserved.