public class TimerStatsAction extends TimerAction
TimerAction
that provides basic statistics for all
timers processed by this action. Basic statistics may be retrieved for a specific
task or the entire set of tasks.nextAction
Constructor and Description |
---|
TimerStatsAction() |
Modifier and Type | Method and Description |
---|---|
Collection<TimerBasicStatistics> |
getAllTimerStatistics()
Return a collection of live instances of
TimerBasicStatistics for
all tasks processed up to the point of invoking this method. |
Collection<TimerBasicStatistics> |
getAllTimerStatisticsSnapshot()
Return a collection of snapshot instances of
TimerBasicStatistics
for all tasks processed up to the point of invoking this method. |
TimerBasicStatistics |
getTimerStatistics(String taskName)
Return a live instance of
TimerBasicStatistics for the provided
task name. |
TimerBasicStatistics |
getTimerStatisticsSnapshot(String taskName)
Return a snapshot instance of
TimerBasicStatistics for the
provided task name. |
protected void |
processTimer(Timer timer)
Perform any applicable processing specific to the actions.
|
protected void |
reset()
Clears all accumulated statistics.
|
addAction, resetState, timerComplete
protected void processTimer(Timer timer)
TimerAction
Concrete classes must override this method in order to view the submitted timers.
processTimer
in class TimerAction
timer
- an instance of a completed Timer
.protected void reset()
reset
in class TimerAction
net.digitaltsunami.tmeter.TimeAction#reset()
public TimerBasicStatistics getTimerStatistics(String taskName)
TimerBasicStatistics
for the provided
task name. Internal values will be modified as this action processes
timers.taskName
- TimerBasicStatistics
or null if that
task has not yet been processed by this action.public TimerBasicStatistics getTimerStatisticsSnapshot(String taskName)
TimerBasicStatistics
for the
provided task name. Internal values will be not be modified as this
action processes timers.taskName
- TimerBasicStatistics
for task name or null if
that task has not yet been processed by this action.public Collection<TimerBasicStatistics> getAllTimerStatistics()
TimerBasicStatistics
for
all tasks processed up to the point of invoking this method. Internal
values will be modified as this action processes timers.TimerBasicStatistics
public Collection<TimerBasicStatistics> getAllTimerStatisticsSnapshot()
TimerBasicStatistics
for all tasks processed up to the point of invoking this method. Internal
values will be modified as this action processes timers.TimerBasicStatistics
Copyright © 2014. All Rights Reserved.