|
||||||||||
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(java.util.Iterator<StopWatch> stopWatchIterator)
Creates a GroupingStatisticsIterator that groups StopWatch instances pulled from the specified stopWatchIterator into GroupedTimingStatistics. |
|
GroupingStatisticsIterator(java.util.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(java.util.Iterator<StopWatch> stopWatchIterator)
stopWatchIterator
- The StopWatch Iterator that provides the StopWatch instances.public GroupingStatisticsIterator(java.util.Iterator<StopWatch> stopWatchIterator, long timeSlice, boolean createRollupStatistics)
stopWatchIterator
- The StopWatch Iterator that provides the StopWatch instances.timeSlice
- The length of each time slice, in milliseconds.createRollupStatistics
- Whether or not entries for "rollup" tags should be createdMethod Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<GroupedTimingStatistics>
public GroupedTimingStatistics next()
next
in interface java.util.Iterator<GroupedTimingStatistics>
public void remove()
remove
in interface java.util.Iterator<GroupedTimingStatistics>
java.lang.UnsupportedOperationException
- Always thrown.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |