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
JMException
public static void unregisterServerMBean(Object mxBeanImplementor, String objNameStr) throws MalformedObjectNameException, InstanceNotFoundException, MBeanRegistrationException
@Nullable public static Object getMBeanAttribute(String objName, String attribute) throws JMException
JMException
public static <T> T getMBean(String jmxName, Class<T> klass) throws MalformedObjectNameException
MalformedObjectNameException
Copyright © 2019 OpenDaylight. All rights reserved.