类 JmxUtils


  • public abstract class JmxUtils
    extends BaseUtils
    The utilities class for JMX
    从以下版本开始:
    1.0.0
    作者:
    Mercy
    • 构造器概要

      构造器 
      构造器 说明
      JmxUtils()  
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      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 the MBeanAttributes from the specified named MBean and its' registered MBeanServer Note that the array of MBeanAttributes is the same order of MBeanInfo.getAttributes()
      static java.util.Map<java.lang.String,​MBeanAttribute> getMBeanAttributesMap​(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName)
      Get the Map with the attribute name and MBeanAttributes from the specified named MBean and its' registered MBeanServer
      static javax.management.MBeanInfo getMBeanInfo​(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • JmxUtils

        public JmxUtils()
    • 方法详细资料

      • getMBeanAttributesMap

        @Nonnull
        public static java.util.Map<java.lang.String,​MBeanAttribute> getMBeanAttributesMap​(javax.management.MBeanServer mBeanServer,
                                                                                                 javax.management.ObjectName objectName)
        Get the Map with the attribute name and MBeanAttributes from the specified named MBean and its' registered MBeanServer
        参数:
        mBeanServer - MBeanServer
        objectName - the name of MBean
        返回:
        non-null read-only Map
      • getMBeanAttributes

        @Nonnull
        public static MBeanAttribute[] getMBeanAttributes​(javax.management.MBeanServer mBeanServer,
                                                          javax.management.ObjectName objectName)
        Get the MBeanAttributes from the specified named MBean and its' registered MBeanServer Note that the array of MBeanAttributes is the same order of MBeanInfo.getAttributes()
        参数:
        mBeanServer - MBeanServer
        objectName - the name of MBean
        返回:
        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)