Class MonitoringUtils


  • public class MonitoringUtils
    extends Object
    The class, which contains utility methods for monitoring support.
    Author:
    Alexey Stashok
    • Constructor Detail

      • MonitoringUtils

        public MonitoringUtils()
    • Method Detail

      • loadJmxObject

        public static Object loadJmxObject​(String jmxObjectClassname,
                                           Object constructorParam)
        Load JMX object class and create an instance using constructor with constructorParam.getClass() parameter. The constructorParam will be passed to the constructor as a parameter.
        Parameters:
        jmxObjectClassname - the JMX object class name.
        constructorParam - the parameter to be passed to the constructor.
        Returns:
        instance of jmxObjectClassname class.
      • loadJmxObject

        public static Object loadJmxObject​(String jmxObjectClassname,
                                           Object constructorParam,
                                           Class contructorParamType)
        Load JMX object class and create an instance using constructor with contructorParamType parameter. The constructorParam will be passed to the constructor as a parameter.
        Parameters:
        jmxObjectClassname - the JMX object class name.
        constructorParam - the parameter to be passed to the constructor.
        contructorParamType - the constructor parameter type, used to find appropriate constructor.
        Returns:
        instance of jmxObjectClassname class.