|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.perf4j.helpers.GroupingStatisticsIterator
public class GroupingStatisticsIterator
This Iterator wraps a StopWatchLogIterator to return a single GroupedTimingStatistics object for
each time slice detected. Thus, this iterator is a "gearing" iterator - if there are on average 100 StopWatches
logged during each time slice, the underlying StopWatchLogIterator will return 100 StopWatches for each single
GroupedTimingStatistics object returned by this Iterator.
| Constructor Summary | |
|---|---|
GroupingStatisticsIterator(Iterator<StopWatch> stopWatchIterator)
Creates a GroupingStatisticsIterator that groups StopWatch instances pulled from the specified stopWatchIterator into GroupedTimingStatistics. |
|
GroupingStatisticsIterator(Iterator<StopWatch> stopWatchIterator,
long timeSlice,
boolean createRollupStatistics)
Creates a GroupingStatisticsIterator that groups StopWatch instances pulled from the specified stopWatchIterator into GroupedTimingStatistics. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
GroupedTimingStatistics |
next()
|
void |
remove()
Remove is not supported. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroupingStatisticsIterator(Iterator<StopWatch> stopWatchIterator)
stopWatchIterator - The StopWatch Iterator that provides the StopWatch instances. If stopWatchIterator
returns a null value, will check to see if a timeslice is over and return
GroupedTimingStatistics if necessary.
public GroupingStatisticsIterator(Iterator<StopWatch> stopWatchIterator,
long timeSlice,
boolean createRollupStatistics)
stopWatchIterator - The StopWatch Iterator that provides the StopWatch instances. If stopWatchIterator
returns a null value, will check to see if a timeslice is over and return
GroupedTimingStatistics if necessary.timeSlice - The length of each time slice, in milliseconds.createRollupStatistics - Whether or not entries for "rollup" tags should be created| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator<GroupedTimingStatistics>public GroupedTimingStatistics next()
next in interface Iterator<GroupedTimingStatistics>public void remove()
remove in interface Iterator<GroupedTimingStatistics>UnsupportedOperationException - Always thrown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||