Package fr.dyade.aaa.util.management
Class MXWrapper
- java.lang.Object
-
- fr.dyade.aaa.util.management.MXWrapper
-
public final class MXWrapper extends Object
-
-
Constructor Summary
Constructors Constructor Description MXWrapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Hashtable<String,Object>dumpAttributes(String[] list)Returns an hashtable containing the values of each JMX attributes described in list.static Hashtable<String,Object>dumpAttributes(String[] list, boolean streamable)Returns an hashtable containing the values of each JMX attributes described in list.static ObjectgetAttribute(String objectName, String attribute)static List<String>getAttributeNames(String mBean)Map<String,Object>getAttributes(String objectName, String[] attributes)static StringobjectName(String domain, String name)static Set<String>queryNames(String objectName)static voidregisterMBean(Object bean, String fullName)static voidregisterMBean(Object bean, String domain, String name)static voidsetMXServer(MXServer server)static voidunregisterMBean(String fullName)static voidunregisterMBean(String domain, String name)
-
-
-
Field Detail
-
NO_JMX
public static final String NO_JMX
Name of the property allowing the use of the A3 runtime without the JMX management framework. The additional property MXServer allows to configure the name of the implementation class of the MXServer interface (by default com.scalagent.jmx.JMXServer).- See Also:
- Constant Field Values
-
mxserver
private static MXServer mxserver
-
-
Method Detail
-
registerMBean
public static void registerMBean(Object bean, String domain, String name) throws Exception
- Throws:
Exception
-
registerMBean
public static void registerMBean(Object bean, String fullName) throws Exception
- Throws:
Exception
-
unregisterMBean
public static void unregisterMBean(String domain, String name) throws Exception
- Throws:
Exception
-
unregisterMBean
public static void unregisterMBean(String fullName) throws Exception
- Throws:
Exception
-
setMXServer
public static void setMXServer(MXServer server)
-
getAttribute
public static Object getAttribute(String objectName, String attribute) throws Exception
- Throws:
Exception
-
getAttributes
public Map<String,Object> getAttributes(String objectName, String[] attributes) throws Exception
- Throws:
Exception
-
queryNames
public static Set<String> queryNames(String objectName) throws Exception
- Throws:
Exception
-
getAttributeNames
public static List<String> getAttributeNames(String mBean) throws Exception
- Throws:
Exception
-
dumpAttributes
public static Hashtable<String,Object> dumpAttributes(String[] list)
Returns an hashtable containing the values of each JMX attributes described in list.- Parameters:
list- List of attributes (may contain wildcards)- Returns:
- The values of each JMX attributes described in list.
-
dumpAttributes
public static Hashtable<String,Object> dumpAttributes(String[] list, boolean streamable)
Returns an hashtable containing the values of each JMX attributes described in list.- Parameters:
list- List of attributes (may contain wildcards)streamable- If true adds only streamable values (see StreamUtil class).- Returns:
- The values of each JMX attributes described in list.
-
-