java.lang.Object
org.glassfish.grizzly.monitoring.MonitoringUtils
The class, which contains utility methods for monitoring support.
- Author:
- Alexey Stashok
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectloadJmxObject(String jmxObjectClassname, Object constructorParam) Load JMX object class and create an instance using constructor with constructorParam.getClass() parameter.static ObjectloadJmxObject(String jmxObjectClassname, Object constructorParam, Class contructorParamType) Load JMX object class and create an instance using constructor with contructorParamType parameter.
-
Constructor Details
-
MonitoringUtils
public MonitoringUtils()
-
-
Method Details
-
loadJmxObject
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.
-