Package io.microsphere.management
Class JmxUtils
- java.lang.Object
-
- io.microsphere.util.BaseUtils
-
- io.microsphere.management.JmxUtils
-
-
Constructor Summary
Constructors Constructor Description JmxUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static java.lang.Object
doGetAttribute(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName, javax.management.MBeanAttributeInfo attributeInfo, java.lang.String attributeName)
static javax.management.MBeanAttributeInfo
findMBeanAttributeInfo(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName, java.lang.String attributeName)
static java.lang.Object
getAttribute(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName, java.lang.String attributeName)
static java.lang.Object
getAttribute(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName, javax.management.MBeanAttributeInfo attributeInfo)
static MBeanAttribute[]
getMBeanAttributes(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName)
Get theMBeanAttributes
from the specified named MBean and its' registeredMBeanServer
Note that the array ofMBeanAttributes
is the same order ofMBeanInfo.getAttributes()
static java.util.Map<java.lang.String,MBeanAttribute>
getMBeanAttributesMap(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName)
Get theMap
with the attribute name andMBeanAttributes
from the specified named MBean and its' registeredMBeanServer
static javax.management.MBeanInfo
getMBeanInfo(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName)
-
-
-
Method Detail
-
getMBeanAttributesMap
@Nonnull public static java.util.Map<java.lang.String,MBeanAttribute> getMBeanAttributesMap(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName)
Get theMap
with the attribute name andMBeanAttributes
from the specified named MBean and its' registeredMBeanServer
- Parameters:
mBeanServer
-MBeanServer
objectName
- the name of MBean- Returns:
- non-null read-only
Map
-
getMBeanAttributes
@Nonnull public static MBeanAttribute[] getMBeanAttributes(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName)
Get theMBeanAttributes
from the specified named MBean and its' registeredMBeanServer
Note that the array ofMBeanAttributes
is the same order ofMBeanInfo.getAttributes()
- Parameters:
mBeanServer
-MBeanServer
objectName
- the name of MBean- Returns:
- non-null array
-
getAttribute
public static java.lang.Object getAttribute(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName, javax.management.MBeanAttributeInfo attributeInfo)
-
getAttribute
public static java.lang.Object getAttribute(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName, java.lang.String attributeName)
-
findMBeanAttributeInfo
public static javax.management.MBeanAttributeInfo findMBeanAttributeInfo(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName, java.lang.String attributeName)
-
doGetAttribute
protected static java.lang.Object doGetAttribute(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName, @Nullable javax.management.MBeanAttributeInfo attributeInfo, java.lang.String attributeName)
-
getMBeanInfo
public static javax.management.MBeanInfo getMBeanInfo(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName)
-
-