Package org.apache.jackrabbit.stats
Class TimeSeriesAverage
- java.lang.Object
-
- org.apache.jackrabbit.stats.TimeSeriesAverage
-
- All Implemented Interfaces:
TimeSeries
public class TimeSeriesAverage extends java.lang.Object implements TimeSeries
Time series of the average calculated by dividing a measured value by the counter of events during the measurement period.
-
-
Constructor Summary
Constructors Constructor Description TimeSeriesAverage(TimeSeries value, TimeSeries counter)
Same asTimeSeriesAverage(TimeSeries, TimeSeries, long)
passing 0 for the 3rd argument.TimeSeriesAverage(TimeSeries value, TimeSeries counter, long missingValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getMissingValue()
The value used to encode missing values i.e.long[]
getValuePerHour()
Returns the measured value per hour over the last week.long[]
getValuePerMinute()
Returns the measured value per minute over the last hour.long[]
getValuePerSecond()
Returns the measured value per second over the last minute.long[]
getValuePerWeek()
Returns the measured value per week over the last three years.
-
-
-
Constructor Detail
-
TimeSeriesAverage
public TimeSeriesAverage(TimeSeries value, TimeSeries counter)
Same asTimeSeriesAverage(TimeSeries, TimeSeries, long)
passing 0 for the 3rd argument.- Parameters:
value
-TimeSeries
of valuescounter
-TimeSeries
of counts
-
TimeSeriesAverage
public TimeSeriesAverage(TimeSeries value, TimeSeries counter, long missingValue)
- Parameters:
value
-TimeSeries
of valuescounter
-TimeSeries
of countsmissingValue
- The value used to encode missing values
-
-
Method Detail
-
getMissingValue
public long getMissingValue()
Description copied from interface:TimeSeries
The value used to encode missing values i.e. for a period where no value was recorded.- Specified by:
getMissingValue
in interfaceTimeSeries
- Returns:
- default value
-
getValuePerSecond
public long[] getValuePerSecond()
Description copied from interface:TimeSeries
Returns the measured value per second over the last minute.- Specified by:
getValuePerSecond
in interfaceTimeSeries
- Returns:
- measured value per second, in chronological order
-
getValuePerMinute
public long[] getValuePerMinute()
Description copied from interface:TimeSeries
Returns the measured value per minute over the last hour.- Specified by:
getValuePerMinute
in interfaceTimeSeries
- Returns:
- measured value per minute, in chronological order
-
getValuePerHour
public long[] getValuePerHour()
Description copied from interface:TimeSeries
Returns the measured value per hour over the last week.- Specified by:
getValuePerHour
in interfaceTimeSeries
- Returns:
- measured value per hour, in chronological order
-
getValuePerWeek
public long[] getValuePerWeek()
Description copied from interface:TimeSeries
Returns the measured value per week over the last three years.- Specified by:
getValuePerWeek
in interfaceTimeSeries
- Returns:
- measured value per week, in chronological order
-
-