Package org.apache.jackrabbit.stats
Class TimeSeriesMax
- java.lang.Object
-
- org.apache.jackrabbit.stats.TimeSeriesMax
-
- All Implemented Interfaces:
TimeSeries
public class TimeSeriesMax extends Object implements TimeSeries
Time series of the maximum value recorded in a period
-
-
Constructor Summary
Constructors Constructor Description TimeSeriesMax()TimeSeriesMax(long missingValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetMissingValue()long[]getValuePerHour()long[]getValuePerMinute()long[]getValuePerSecond()long[]getValuePerWeek()voidrecordOneSecond()Records the number of measured values over the past second and resets the counter.voidrecordValue(long value)
-
-
-
Method Detail
-
recordValue
public void recordValue(long value)
-
recordOneSecond
public void recordOneSecond()
Records the number of measured values over the past second and resets the counter. This method should be scheduled to be called once per second.
-
getMissingValue
public long getMissingValue()
- Specified by:
getMissingValuein interfaceTimeSeries
-
getValuePerSecond
public long[] getValuePerSecond()
- Specified by:
getValuePerSecondin interfaceTimeSeries
-
getValuePerMinute
public long[] getValuePerMinute()
- Specified by:
getValuePerMinutein interfaceTimeSeries
-
getValuePerHour
public long[] getValuePerHour()
- Specified by:
getValuePerHourin interfaceTimeSeries
-
getValuePerWeek
public long[] getValuePerWeek()
- Specified by:
getValuePerWeekin interfaceTimeSeries
-
-