public class TimeSeriesRecorder extends Object implements TimeSeries
AtomicLong
counter once every second and
exposes the collected time series through the TimeSeries
interface.Constructor and Description |
---|
TimeSeriesRecorder(boolean resetValueEachSecond) |
TimeSeriesRecorder(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()
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.
|
void |
recordOneSecond()
Records the number of measured values over the past second and resets
the counter.
|
public TimeSeriesRecorder(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()
TimeSeries
getValuePerSecond
in interface TimeSeries
public long[] getValuePerMinute()
TimeSeries
getValuePerMinute
in interface TimeSeries
public long[] getValuePerHour()
TimeSeries
getValuePerHour
in interface TimeSeries
public long[] getValuePerWeek()
TimeSeries
getValuePerWeek
in interface TimeSeries
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"