Top Fields Constructors Methods
org.glassfish.pfl.tf.timer.impl

public abstract Class StatsEventHandlerBase

extends NamedBase
implements StatsEventHandler
Class Inheritance
All Implemented Interfaces
org.glassfish.pfl.tf.timer.spi.StatsEventHandler, org.glassfish.pfl.tf.timer.spi.TimerEventHandler, org.glassfish.pfl.tf.timer.spi.Named
Known Direct Subclasses
org.glassfish.pfl.tf.timer.impl.StatsEventHandlerImpl, org.glassfish.pfl.tf.timer.impl.MultiThreadedStatsEventHandlerImpl
Imports
java.util.ArrayList, .HashMap, .Map, .Stack, org.glassfish.pfl.tf.timer.spi.Controllable, .NamedBase, .Statistics, .StatisticsAccumulator, .StatsEventHandler, .Timer, .TimerEvent, .TimerFactory

Field Summary

Modifier and TypeField and Description
protected ArrayList<StatisticsAccumulator>
protected static final String

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Implements org.glassfish.pfl.tf.timer.spi.StatsEventHandler.clear.

Discard all accumulated statistics.

protected final void
notify(Stack<TimerEvent> teStack, TimerEvent event)

protected abstract void
recordDuration(int id, long duration)

public Map<Timer, Statistics>
stats()

Implements org.glassfish.pfl.tf.timer.spi.StatsEventHandler.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).

Inherited from org.glassfish.pfl.tf.timer.spi.NamedBase:
equalsfactoryhashCodenamesetFactorytoString

Field Detail

saListback to summary
protected ArrayList<StatisticsAccumulator> saList
UNITSback to summary
protected static final String UNITS

Constructor Detail

StatsEventHandlerBaseback to summary
protected StatsEventHandlerBase(TimerFactory factory, String name)

Method Detail

clearback to summary
public void clear()

Implements org.glassfish.pfl.tf.timer.spi.StatsEventHandler.clear.

Doc from org.glassfish.pfl.tf.timer.spi.StatsEventHandler.clear.

Discard all accumulated statistics.

notifyback to summary
protected final void notify(Stack<TimerEvent> teStack, TimerEvent event)
recordDurationback to summary
protected abstract void recordDuration(int id, long duration)
statsback to summary
public Map<Timer, Statistics> stats()

Implements org.glassfish.pfl.tf.timer.spi.StatsEventHandler.stats.

Doc from org.glassfish.pfl.tf.timer.spi.StatsEventHandler.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).