Module org.glassfish.grizzly
Package org.glassfish.grizzly.monitoring
Class DefaultMonitoringConfig<E>
java.lang.Object
org.glassfish.grizzly.monitoring.DefaultMonitoringConfig<E>
- All Implemented Interfaces:
MonitoringConfig<E>
Default monitoring configuration, with no JMX support.
The
createManagementObject() method returns null, so if a child class requires JMX support, it has to
implement this method properly.- Author:
- Alexey Stashok
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidAdd the monitoring probes, which will be notified about object's lifecycle events.final voidRemoves all the monitoring probes, which are registered on the object.Create the JMXObject, which represents this object.final E[]Get the the monitoring probes, which are registered on the objet.final E[]Get the monitoring probes array (direct).booleanfinal booleanremoveProbes(E... probes) Remove the monitoring probes.
-
Constructor Details
-
DefaultMonitoringConfig
-
-
Method Details
-
addProbes
Add the monitoring probes, which will be notified about object's lifecycle events.- Specified by:
addProbesin interfaceMonitoringConfig<E>- Parameters:
probes- the monitoring probes.
-
removeProbes
Remove the monitoring probes.- Specified by:
removeProbesin interfaceMonitoringConfig<E>- Parameters:
probes- the monitoring probes.
-
getProbes
Get the the monitoring probes, which are registered on the objet. Please note, it's not appropriate to modify the returned array's content. Please useMonitoringConfig.addProbes(Object[])andMonitoringConfig.removeProbes(Object[])instead.- Specified by:
getProbesin interfaceMonitoringConfig<E>- Returns:
- the the monitoring probes, which are registered on the object.
-
getProbesUnsafe
Get the monitoring probes array (direct).- Returns:
- the monitoring probes array (direct).
-
hasProbes
public boolean hasProbes()- Specified by:
hasProbesin interfaceMonitoringConfig<E>
-
clearProbes
public final void clearProbes()Removes all the monitoring probes, which are registered on the object.- Specified by:
clearProbesin interfaceMonitoringConfig<E>
-
createManagementObject
Create the JMXObject, which represents this object.- Specified by:
createManagementObjectin interfaceMonitoringConfig<E>- Returns:
- the JMX
Object, which represents this object.
-