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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitnotifyprotected static final java.lang.String UNITS
protected java.util.ArrayList<StatisticsAccumulator> saList
protected StatsEventHandlerBase(TimerFactory factory, java.lang.String name)
public void clear()
StatsEventHandlerclear in interface StatsEventHandlerprotected 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()
StatsEventHandlerstats in interface StatsEventHandler