|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StatsEventHandler
Gather statistics on the times reported to this TimerEventHandler. It will keep events from different thread separated in order to get good results, but the result of the stats call merges all of the results together.
The time is the duration between an enter and an exit call to a timer from the same thread. Recursive calls are matched, and the results accumulated as in any other case.
| Method Summary | |
|---|---|
void |
clear()
Discard all accumulated statistics. |
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). |
| Methods inherited from interface org.glassfish.pfl.tf.timer.spi.TimerEventHandler |
|---|
notify |
| Methods inherited from interface org.glassfish.pfl.tf.timer.spi.Named |
|---|
factory, name |
| Method Detail |
|---|
Map<Timer,Statistics> stats()
void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||