public abstract class StatsEventHandlerBase extends NamedBase implements StatsEventHandler
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<StatisticsAccumulator> |
saList |
protected static String |
UNITS |
| Modifier | Constructor and Description |
|---|---|
protected |
StatsEventHandlerBase(TimerFactory factory,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Discard all accumulated statistics.
|
protected void |
notify(Stack<TimerEvent> teStack,
TimerEvent event) |
protected abstract void |
recordDuration(int id,
long duration) |
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 String UNITS
protected ArrayList<StatisticsAccumulator> saList
protected StatsEventHandlerBase(TimerFactory factory, String name)
public void clear()
StatsEventHandlerclear in interface StatsEventHandlerprotected abstract void recordDuration(int id,
long duration)
protected final void notify(Stack<TimerEvent> teStack, TimerEvent event)
public Map<Timer,Statistics> stats()
StatsEventHandlerstats in interface StatsEventHandlerCopyright © 2011–2019 Eclipse Foundation. All rights reserved.