Class StatsEventHandlerImpl
java.lang.Object
org.glassfish.pfl.tf.timer.spi.NamedBase
org.glassfish.pfl.tf.timer.impl.StatsEventHandlerBase
org.glassfish.pfl.tf.timer.impl.StatsEventHandlerImpl
- All Implemented Interfaces:
Named, StatsEventHandler, TimerEventHandler
-
Field Summary
FieldsFields inherited from class StatsEventHandlerBase
saList, UNITS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Discard all accumulated statistics.voidnotify(TimerEvent event) protected voidrecordDuration(int id, long duration) Methods inherited from class StatsEventHandlerBase
notify, stats
-
Field Details
-
teStack
-
-
Constructor Details
-
StatsEventHandlerImpl
StatsEventHandlerImpl(TimerFactory factory, String name)
-
-
Method Details
-
clear
public void clear()Description copied from interface:StatsEventHandlerDiscard all accumulated statistics.- Specified by:
clearin interfaceStatsEventHandler- Overrides:
clearin classStatsEventHandlerBase
-
recordDuration
protected void recordDuration(int id, long duration) - Specified by:
recordDurationin classStatsEventHandlerBase
-
notify
-