Class JMXUtil


  • public class JMXUtil
    extends Object
    Author:
    jasonlee
    • Constructor Detail

      • JMXUtil

        public JMXUtil()
        Creates a new instance of JMXUtil
    • Method Detail

      • getAttribute

        public static Object getAttribute​(String objectName,
                                          String attributeName)
      • setAttribute

        public static void setAttribute​(String objectName,
                                        Attribute attributeName)
      • setAttribute

        public static void setAttribute​(ObjectName objectName,
                                        Attribute attributeName)
      • getDefaultAttributeValue

        public static Object getDefaultAttributeValue​(String objName,
                                                      String[] params)
        Method that obtains the default values from domain
        Parameters:
        objName - Object Name of Mbean
        params - array containing the name of attribute whose default value is needed
        Returns:
        an Object representing the default value
      • isValidMBean

        public static boolean isValidMBean​(String objectName)