Package org.glassfish.grizzly.monitoring
Class MonitoringUtils
- java.lang.Object
-
- org.glassfish.grizzly.monitoring.MonitoringUtils
-
public class MonitoringUtils extends java.lang.ObjectThe 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.ObjectloadJmxObject(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.ObjectloadJmxObject(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.
-
-
-
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.
-
-