Class PerformanceStatistics.AveragingQueue
- java.lang.Object
-
- org.apache.manifoldcf.crawler.interfaces.PerformanceStatistics.AveragingQueue
-
- Enclosing class:
- PerformanceStatistics
protected static class PerformanceStatistics.AveragingQueue extends java.lang.ObjectThis class keeps track of some depth of fetch history for an individual connection, and is used to calculate a weighted average fetches-per-minute rate.
-
-
Field Summary
Fields Modifier and Type Field Description protected PerformanceStatistics.AveragingRecord[]recordsThe internal structure of the averaging queue is a circular buffer, which gets initialized to the default valueprotected intstartIndexThis is the current start pointer
-
Constructor Summary
Constructors Constructor Description AveragingQueue()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRecord(int setSize, long elapsedTime)Add a recorddoublecalculateFetchRate()Calculate running-average fetch rate
-
-
-
Field Detail
-
records
protected PerformanceStatistics.AveragingRecord[] records
The internal structure of the averaging queue is a circular buffer, which gets initialized to the default value
-
startIndex
protected int startIndex
This is the current start pointer
-
-