Package org.glassfish.pfl.tf.timer.impl
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
public class StatsEventHandlerImpl extends StatsEventHandlerBase
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Stack<TimerEvent>teStack-
Fields inherited from class org.glassfish.pfl.tf.timer.impl.StatsEventHandlerBase
saList, UNITS
-
-
Constructor Summary
Constructors Constructor Description StatsEventHandlerImpl(TimerFactory factory, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Discard all accumulated statistics.voidnotify(TimerEvent event)protected voidrecordDuration(int id, long duration)-
Methods inherited from class org.glassfish.pfl.tf.timer.impl.StatsEventHandlerBase
notify, stats
-
Methods inherited from class org.glassfish.pfl.tf.timer.spi.NamedBase
equals, factory, hashCode, name, setFactory, toString
-
-
-
-
Field Detail
-
teStack
private java.util.Stack<TimerEvent> teStack
-
-
Constructor Detail
-
StatsEventHandlerImpl
StatsEventHandlerImpl(TimerFactory factory, java.lang.String name)
-
-
Method Detail
-
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
public void notify(TimerEvent event)
-
-