Class MonitoringUtils


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

      Constructors 
      Constructor Description
      MonitoringUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object loadJmxObject​(java.lang.String jmxObjectClassname, java.lang.Object constructorParam)
      Load JMX object class and create an instance using constructor with constructorParam.getClass() parameter.
      static java.lang.Object loadJmxObject​(java.lang.String jmxObjectClassname, java.lang.Object constructorParam, java.lang.Class contructorParamType)
      Load JMX object class and create an instance using constructor with contructorParamType parameter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MonitoringUtils

        public MonitoringUtils()
    • Method Detail

      • loadJmxObject

        public static java.lang.Object loadJmxObject​(java.lang.String jmxObjectClassname,
                                                     java.lang.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 java.lang.Object loadJmxObject​(java.lang.String jmxObjectClassname,
                                                     java.lang.Object constructorParam,
                                                     java.lang.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.