|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.crawler.interfaces.PerformanceStatistics.AveragingQueue
protected static class PerformanceStatistics.AveragingQueue
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 | |
|---|---|
protected PerformanceStatistics.AveragingRecord[] |
records
The internal structure of the averaging queue is a circular buffer, which gets initialized to the default value |
protected int |
startIndex
This is the current start pointer |
| Constructor Summary | |
|---|---|
PerformanceStatistics.AveragingQueue()
Constructor |
|
| Method Summary | |
|---|---|
void |
addRecord(int setSize,
long elapsedTime)
Add a record |
double |
calculateFetchRate()
Calculate running-average fetch rate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PerformanceStatistics.AveragingRecord[] records
protected int startIndex
| Constructor Detail |
|---|
public PerformanceStatistics.AveragingQueue()
| Method Detail |
|---|
public void addRecord(int setSize,
long elapsedTime)
public double calculateFetchRate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||