public abstract class StatsEventHandlerBase extends NamedBase implements StatsEventHandler
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<StatisticsAccumulator> |
saList |
protected static java.lang.String |
UNITS |
Modifier | Constructor and Description |
---|---|
protected |
StatsEventHandlerBase(TimerFactory factory,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Discard all accumulated statistics.
|
protected void |
notify(java.util.Stack<TimerEvent> teStack,
TimerEvent event) |
protected abstract void |
recordDuration(int id,
long duration) |
java.util.Map<Timer,Statistics> |
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).
|
equals, factory, hashCode, name, setFactory, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
notify
protected static final java.lang.String UNITS
protected java.util.ArrayList<StatisticsAccumulator> saList
protected StatsEventHandlerBase(TimerFactory factory, java.lang.String name)
public void clear()
StatsEventHandler
clear
in interface StatsEventHandler
protected abstract void recordDuration(int id, long duration)
protected final void notify(java.util.Stack<TimerEvent> teStack, TimerEvent event)
public java.util.Map<Timer,Statistics> stats()
StatsEventHandler
stats
in interface StatsEventHandler