Package org.apache.jackrabbit.stats
Class TimeSeriesMax
java.lang.Object
org.apache.jackrabbit.stats.TimeSeriesMax
- All Implemented Interfaces:
TimeSeries
Time series of the maximum value recorded in a period
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongThe value used to encode missing values i.e.long[]Returns the measured value per hour over the last week.long[]Returns the measured value per minute over the last hour.long[]Returns the measured value per second over the last minute.long[]Returns the measured value per week over the last three years.voidRecords the number of measured values over the past second and resets the counter.voidrecordValue(long value)
-
Constructor Details
-
TimeSeriesMax
public TimeSeriesMax() -
TimeSeriesMax
public TimeSeriesMax(long missingValue)
-
-
Method Details
-
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()Description copied from interface:TimeSeriesThe value used to encode missing values i.e. for a period where no value was recorded.- Specified by:
getMissingValuein interfaceTimeSeries- Returns:
- default value
-
getValuePerSecond
public long[] getValuePerSecond()Description copied from interface:TimeSeriesReturns the measured value per second over the last minute.- Specified by:
getValuePerSecondin interfaceTimeSeries- Returns:
- measured value per second, in chronological order
-
getValuePerMinute
public long[] getValuePerMinute()Description copied from interface:TimeSeriesReturns the measured value per minute over the last hour.- Specified by:
getValuePerMinutein interfaceTimeSeries- Returns:
- measured value per minute, in chronological order
-
getValuePerHour
public long[] getValuePerHour()Description copied from interface:TimeSeriesReturns the measured value per hour over the last week.- Specified by:
getValuePerHourin interfaceTimeSeries- Returns:
- measured value per hour, in chronological order
-
getValuePerWeek
public long[] getValuePerWeek()Description copied from interface:TimeSeriesReturns the measured value per week over the last three years.- Specified by:
getValuePerWeekin interfaceTimeSeries- Returns:
- measured value per week, in chronological order
-