org.glassfish.grizzly.monitoring
Class MonitoringConfigImpl<E>

java.lang.Object
  extended by org.glassfish.grizzly.monitoring.MonitoringConfigImpl<E>
All Implemented Interfaces:
MonitoringConfig<E>
Direct Known Subclasses:
AbstractJmxMonitoringConfig

public class MonitoringConfigImpl<E>
extends java.lang.Object
implements MonitoringConfig<E>

Monitoring configuration.

Author:
Alexey Stashok

Constructor Summary
MonitoringConfigImpl(java.lang.Class<E> clazz)
           
 
Method Summary
 void addProbes(E... probes)
          Add the monitoring probes, which will be notified about object's lifecycle events.
 void clearProbes()
          Removes all the monitoring probes, which are registered on the object.
 E[] getProbes()
          Get the the monitoring probes, which are registered on the objet.
 E[] getProbesUnsafe()
          Get the monitoring probes array (direct).
 boolean removeProbes(E... probes)
          Remove the monitoring probes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitoringConfigImpl

public MonitoringConfigImpl(java.lang.Class<E> clazz)
Method Detail

addProbes

public final void addProbes(E... probes)
Add the monitoring probes, which will be notified about object's lifecycle events.

Specified by:
addProbes in interface MonitoringConfig<E>
Parameters:
probes - the monitoring probes.

removeProbes

public final boolean removeProbes(E... probes)
Remove the monitoring probes.

Specified by:
removeProbes in interface MonitoringConfig<E>
Parameters:
probes - the monitoring probes.

getProbes

public final E[] 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 use MonitoringConfig.addProbes(Object[]) and MonitoringConfig.removeProbes(Object[]) instead.

Specified by:
getProbes in interface MonitoringConfig<E>
Returns:
the the monitoring probes, which are registered on the object.

getProbesUnsafe

public final E[] getProbesUnsafe()
Get the monitoring probes array (direct).

Returns:
the monitoring probes array (direct).

clearProbes

public final void clearProbes()
Removes all the monitoring probes, which are registered on the object.

Specified by:
clearProbes in interface MonitoringConfig<E>


Copyright © 2011 Oracle Corpration. All Rights Reserved.