org.glassfish.grizzly.monitoring
Interface MonitoringConfig<E>

All Known Subinterfaces:
JmxMonitoringConfig<E>
All Known Implementing Classes:
AbstractJmxMonitoringConfig, MonitoringConfigImpl

public interface MonitoringConfig<E>

General monitoring configuration interface.

Author:
Alexey Stashok

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.
 boolean removeProbes(E... probes)
          Remove the monitoring probes.
 

Method Detail

addProbes

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

Parameters:
probes - the monitoring probes.

removeProbes

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

Parameters:
probes - the monitoring probes.

getProbes

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 addProbes(Object[]) and removeProbes(Object[]) instead.

Returns:
the the monitoring probes, which are registered on the object.

clearProbes

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



Copyright © 2011 Oracle Corpration. All Rights Reserved.