public class MutableAverageRangeStatisticImpl extends Object implements AverageRangeStatistic, MutableCountStatistic
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_MAX_BOUND
DEFAULT_UPPER_BOUND is maximum value Long can attain
|
| Constructor and Description |
|---|
MutableAverageRangeStatisticImpl(BoundedRangeStatistic initial)
Constructs an instance of MutableAverageRangeStatisticImpl that encapsulates the given Statistic.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getAverage() |
long |
getCurrent()
The current value of this attribute.
|
String |
getDescription()
A human-readable description of the Statistic.
|
long |
getHighWaterMark()
The highest value this attribute has held since the beginning of the measurement.
|
long |
getLastSampleTime()
The time of the last measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00.
|
long |
getLowWaterMark()
The lowest value this attribute has held since the beginning of the measurement.
|
String |
getName()
The name of this Statistic.
|
long |
getStartTime()
The time of the first measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00.
|
String |
getUnit()
The unit of measurement for this Statistic.
|
Statistic |
modifiableView()
Returns an instance of Statistic whose state can be changed by the caller.
|
void |
reset()
Resets the encapsulated Statistic interface to its initial value.
|
void |
setCount(long current)
Provides the mutator to the only statistic in the implementing class that
changes - Count.
|
Statistic |
unmodifiableView()
Returns a read-only view of this Statistic.
|
public static final long DEFAULT_MAX_BOUND
public MutableAverageRangeStatisticImpl(BoundedRangeStatistic initial)
initial - an instance of BoundedRangeStatistic that represents initial statepublic Statistic modifiableView()
MutableStatisticmodifiableView in interface MutableStatisticpublic Statistic unmodifiableView()
MutableStatisticj2ee.statistic
and com.sun.enterprise.admin.monitor.stats packages.unmodifiableView in interface MutableStatisticpublic void reset()
MutableStatisticreset in interface MutableStatisticpublic void setCount(long current)
MutableCountStatisticsetCount in interface MutableCountStatisticcurrent - long that specifies the value when measured (sampled).public long getAverage()
getAverage in interface AverageRangeStatisticpublic long getCurrent()
RangeStatisticgetCurrent in interface RangeStatisticpublic String getDescription()
StatisticgetDescription in interface Statisticpublic long getHighWaterMark()
RangeStatisticgetHighWaterMark in interface RangeStatisticpublic long getLastSampleTime()
StatisticgetLastSampleTime in interface Statisticpublic long getLowWaterMark()
RangeStatisticgetLowWaterMark in interface RangeStatisticpublic String getName()
Statisticpublic long getStartTime()
StatisticgetStartTime in interface StatisticCopyright © 2015. All rights reserved.