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 long
getMissingValue()
long[]
getValuePerHour()
long[]
getValuePerMinute()
long[]
getValuePerSecond()
long[]
getValuePerWeek()
void
recordOneSecond()
Records the number of measured values over the past second and resets the counter.void
recordValue(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:
getMissingValue
in interfaceTimeSeries
-
getValuePerSecond
public long[] getValuePerSecond()
- Specified by:
getValuePerSecond
in interfaceTimeSeries
-
getValuePerMinute
public long[] getValuePerMinute()
- Specified by:
getValuePerMinute
in interfaceTimeSeries
-
getValuePerHour
public long[] getValuePerHour()
- Specified by:
getValuePerHour
in interfaceTimeSeries
-
getValuePerWeek
public long[] getValuePerWeek()
- Specified by:
getValuePerWeek
in interfaceTimeSeries
-
-