public class TimeSeriesRecorder extends Object implements org.apache.jackrabbit.api.stats.TimeSeries
AtomicLong counter once every second and
exposes the collected time series through the TimeSeries
interface.| Constructor and Description |
|---|
TimeSeriesRecorder(boolean resetValueEachSecond) |
TimeSeriesRecorder(org.apache.jackrabbit.api.stats.RepositoryStatistics.Type type) |
| Modifier and Type | Method and Description |
|---|---|
AtomicLong |
getCounter()
Returns the
AtomicLong instance used to measure the value for
the time series. |
long[] |
getValuePerHour() |
long[] |
getValuePerMinute() |
long[] |
getValuePerSecond() |
long[] |
getValuePerWeek() |
void |
recordOneSecond()
Records the number of measured values over the past second and resets
the counter.
|
public TimeSeriesRecorder(org.apache.jackrabbit.api.stats.RepositoryStatistics.Type type)
public TimeSeriesRecorder(boolean resetValueEachSecond)
public AtomicLong getCounter()
AtomicLong instance used to measure the value for
the time series.public void recordOneSecond()
public long[] getValuePerSecond()
getValuePerSecond in interface org.apache.jackrabbit.api.stats.TimeSeriespublic long[] getValuePerMinute()
getValuePerMinute in interface org.apache.jackrabbit.api.stats.TimeSeriespublic long[] getValuePerHour()
getValuePerHour in interface org.apache.jackrabbit.api.stats.TimeSeriespublic long[] getValuePerWeek()
getValuePerWeek in interface org.apache.jackrabbit.api.stats.TimeSeriesCopyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.