Package org.jppf.utils.stats
Class JPPFFilteredStatisticsListener
java.lang.Object
org.jppf.utils.stats.JPPFFilteredStatisticsListener
- All Implemented Interfaces:
EventListener,JPPFStatisticsListener
public abstract class JPPFFilteredStatisticsListener
extends Object
implements JPPFStatisticsListener
A statistics listener with an optionally associated
snapshot filter.- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet an optional filter to associate with this listener.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jppf.utils.stats.JPPFStatisticsListener
snapshotAdded, snapshotRemoved, snapshotUpdated
-
Constructor Details
-
JPPFFilteredStatisticsListener
public JPPFFilteredStatisticsListener()
-
-
Method Details
-
getFilter
Get an optional filter to associate with this listener. The listener will only be notified for snapshots that are accepted by the filter. The default implementation returnsnull(no filter) and is intended to be overriden as needed in subclasses.Additionally, this method is only called once for each listener, so you don't have to keep a reference to the created filter.
- Returns:
- a
JPPFStatistics.Filterinstance.
-