Class PerformanceStatistics.AveragingQueue
- java.lang.Object
-
- org.apache.manifoldcf.crawler.interfaces.PerformanceStatistics.AveragingQueue
-
- Enclosing class:
- PerformanceStatistics
protected static class PerformanceStatistics.AveragingQueue extends java.lang.Object
This 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[]
records
The internal structure of the averaging queue is a circular buffer, which gets initialized to the default valueprotected int
startIndex
This 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 void
addRecord(int setSize, long elapsedTime)
Add a recorddouble
calculateFetchRate()
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
-
-