Package org.apache.jackrabbit.stats
Class TimeSeriesAverage
- java.lang.Object
-
- org.apache.jackrabbit.stats.TimeSeriesAverage
-
- All Implemented Interfaces:
TimeSeries
public class TimeSeriesAverage extends 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()
long[]
getValuePerHour()
long[]
getValuePerMinute()
long[]
getValuePerSecond()
long[]
getValuePerWeek()
-
-
-
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()
- 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
-
-