Package one.nio.mgt
Class Management
- java.lang.Object
-
- one.nio.mgt.Management
-
public class Management extends Object
-
-
Constructor Summary
Constructors Constructor Description Management()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectgetAttribute(String name, String attribute)static ObjectgetAttribute(ObjectName objName, String attribute)static Object[]getAttributes(String name, String... attributes)static Object[]getAttributes(ObjectName objName, String... attributes)static voidregisterMXBean(Object object, String name)static <T> voidregisterMXBean(T object, Class<T> mxbeanInterface, String name)static Set<ObjectName>resolvePattern(String name)static voidunregisterMXBean(String name)
-
-
-
Method Detail
-
registerMXBean
public static <T> void registerMXBean(T object, Class<T> mxbeanInterface, String name)
-
unregisterMXBean
public static void unregisterMXBean(String name)
-
getAttribute
public static Object getAttribute(String name, String attribute) throws JMException
- Throws:
JMException
-
getAttribute
public static Object getAttribute(ObjectName objName, String attribute) throws JMException
- Throws:
JMException
-
getAttributes
public static Object[] getAttributes(String name, String... attributes) throws JMException
- Throws:
JMException
-
getAttributes
public static Object[] getAttributes(ObjectName objName, String... attributes) throws JMException
- Throws:
JMException
-
resolvePattern
public static Set<ObjectName> resolvePattern(String name) throws JMException
- Throws:
JMException
-
-