Top Description Fields Constructors Methods
org.glassfish.grizzly.monitoring

public Class MonitoringUtils

extends Object
Class Inheritance
Imports
java.lang.reflect.Constructor, java.util.logging.Level, .Logger, org.glassfish.grizzly.Grizzly

The class, which contains utility methods for monitoring support.
Author
Alexey Stashok

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static Class<?>
loadClass(final String classname)

public static Object

Returns:

instance of jmxObjectClassname class.
loadJmxObject
(final String
the JMX object class name.
jmxObjectClassname
,
final Object
the parameter to be passed to the constructor.
constructorParam
)

Load JMX object class and create an instance using constructor with constructorParam.getClass() parameter.

public static Object

Returns:

instance of jmxObjectClassname class.
loadJmxObject
(final String
the JMX object class name.
jmxObjectClassname
,
final Object
the parameter to be passed to the constructor.
constructorParam
,
final Class<T>
the constructor parameter type, used to find appropriate constructor.
contructorParamType
)

Load JMX object class and create an instance using constructor with contructorParamType parameter.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

MonitoringUtilsback to summary
public MonitoringUtils()

Method Detail

loadClassback to summary
private static Class<?> loadClass(final String classname) throws ClassNotFoundException
loadJmxObjectback to summary
public static Object loadJmxObject(final String jmxObjectClassname, final 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:String

the JMX object class name.

constructorParam:Object

the parameter to be passed to the constructor.

Returns:Object

instance of jmxObjectClassname class.

loadJmxObjectback to summary
public static Object loadJmxObject(final String jmxObjectClassname, final Object constructorParam, final Class<T> 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:String

the JMX object class name.

constructorParam:Object

the parameter to be passed to the constructor.

contructorParamType:Class<T>

the constructor parameter type, used to find appropriate constructor.

Returns:Object

instance of jmxObjectClassname class.