public class MutableBoundedRangeStatisticImpl extends Object implements BoundedRangeStatistic, MutableCountStatistic
for an immutable implementation,
Serialized Form| Constructor and Description |
|---|
MutableBoundedRangeStatisticImpl(BoundedRangeStatistic initial)
Constructs an instance of MutableCountStatistic that encapsulates the given Statistic.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
getLowerBound()
The lower limit of the value of this attribute.The upper limit of the value of this attribute.
|
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.
|
long |
getUpperBound()
The upper limit of the value of this attribute.
|
Statistic |
modifiableView()
Returns an instance of Statistic whose state can be changed by the caller.
|
void |
reset()
Resets to the initial state.
|
void |
setCount(long current)
Changes the current value of the encapsulated BoundedRangeStatistic to the given value.
|
void |
setDescription(String s) |
Statistic |
unmodifiableView()
This method is the essence of this class.
|
public MutableBoundedRangeStatisticImpl(BoundedRangeStatistic initial)
initial - an instance of BoundedRangeStatistic that represents initial statepublic void reset()
reset in interface MutableStatisticpublic void setCount(long current)
setCount in interface MutableCountStatisticcount - long that represents the current value of the Statistic.public Statistic unmodifiableView()
unmodifiableView in interface MutableStatisticreset(),
setCount(long)public String getDescription()
StatisticgetDescription in interface Statisticpublic long getLastSampleTime()
StatisticgetLastSampleTime in interface Statisticpublic String getName()
Statisticpublic long getStartTime()
StatisticgetStartTime in interface Statisticpublic String getUnit()
Statisticpublic Statistic modifiableView()
MutableStatisticmodifiableView in interface MutableStatisticpublic long getCurrent()
RangeStatisticgetCurrent in interface RangeStatisticpublic long getHighWaterMark()
RangeStatisticgetHighWaterMark in interface RangeStatisticpublic long getLowWaterMark()
RangeStatisticgetLowWaterMark in interface RangeStatisticpublic long getLowerBound()
BoundaryStatisticgetLowerBound in interface BoundaryStatisticpublic long getUpperBound()
BoundaryStatisticgetUpperBound in interface BoundaryStatisticpublic void setDescription(String s)
Copyright © 2017. All rights reserved.