Package org.glassfish.grizzly.monitoring
Class MonitoringUtils
- java.lang.Object
-
- org.glassfish.grizzly.monitoring.MonitoringUtils
-
public class MonitoringUtils extends 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 Object
loadJmxObject(String jmxObjectClassname, Object constructorParam)
Load JMX object class and create an instance using constructor with constructorParam.getClass() parameter.static Object
loadJmxObject(String jmxObjectClassname, Object constructorParam, Class contructorParamType)
Load JMX object class and create an instance using constructor with contructorParamType parameter.
-
-
-
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.
-
-