Package org.glassfish.pfl.tf.timer.impl
Class StatsEventHandlerBase
java.lang.Object
org.glassfish.pfl.tf.timer.spi.NamedBase
org.glassfish.pfl.tf.timer.impl.StatsEventHandlerBase
- All Implemented Interfaces:
Named,StatsEventHandler,TimerEventHandler
- Direct Known Subclasses:
MultiThreadedStatsEventHandlerImpl,StatsEventHandlerImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ArrayList<StatisticsAccumulator>protected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Discard all accumulated statistics.protected final voidnotify(Stack<TimerEvent> teStack, TimerEvent event) protected abstract voidrecordDuration(int id, long duration) stats()Return map that gives the accumulated statistics for each TimerEvent that has been observed by this event handler since the last call to clear (or since the creation of this handler, if clear has not been called).Methods inherited from class org.glassfish.pfl.tf.timer.spi.NamedBase
equals, factory, hashCode, name, setFactory, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glassfish.pfl.tf.timer.spi.TimerEventHandler
notify
-
Field Details
-
UNITS
- See Also:
-
saList
-
-
Constructor Details
-
StatsEventHandlerBase
-
-
Method Details
-
clear
public void clear()Description copied from interface:StatsEventHandlerDiscard all accumulated statistics.- Specified by:
clearin interfaceStatsEventHandler
-
recordDuration
protected abstract void recordDuration(int id, long duration) -
notify
-
stats
Description copied from interface:StatsEventHandlerReturn map that gives the accumulated statistics for each TimerEvent that has been observed by this event handler since the last call to clear (or since the creation of this handler, if clear has not been called).- Specified by:
statsin interfaceStatsEventHandler
-