Class MonitoringHelper


  • public class MonitoringHelper
    extends Object
    • Field Detail

      • logger

        private static Logger logger
      • DEBUG

        private static final boolean DEBUG
    • Constructor Detail

      • MonitoringHelper

        public MonitoringHelper()
    • Method Detail

      • getJMXValues

        public static void getJMXValues​(Message message,
                                        Vector elements)
      • getMonitoredAttributes

        public static String[] getMonitoredAttributes​(Vector elements)
        Returns the comma separated list of all monitored attributes.
        Parameters:
        elements - the various elements to monitor.
        Returns:
        the comma separated list of all monitored attributes.
      • addMonitoredAttributes

        public static void addMonitoredAttributes​(Vector elements,
                                                  String MBeanName,
                                                  String attributes)
        Add the specified attributes to the list of monitored attributes. If the Mbean is already monitored, the specified list of attributes overrides the existing one.
        Parameters:
        elements - the various elements to monitor.
        MBeanName - the name of the MBean.
        attributes - the comma separated list of attributes to monitor.
      • delMonitoredAttributes

        public static void delMonitoredAttributes​(Vector elements,
                                                  String mbean)
        Removes all the attributes of the specified MBean in the list of monitored attributes.
        Parameters:
        elements - the various elements to monitor.
        mbean - the name of the MBean.