public class MutableBoundedRangeStatisticImpl extends Object implements javax.management.j2ee.statistics.BoundedRangeStatistic, MutableCountStatistic
for an immutable implementation,
Serialized Form| Constructor and Description |
|---|
MutableBoundedRangeStatisticImpl(javax.management.j2ee.statistics.BoundedRangeStatistic initial)
Constructs an instance of MutableCountStatistic that encapsulates the given Statistic.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCurrent() |
String |
getDescription() |
long |
getHighWaterMark() |
long |
getLastSampleTime() |
long |
getLowerBound() |
long |
getLowWaterMark() |
String |
getName() |
long |
getStartTime() |
String |
getUnit() |
long |
getUpperBound() |
javax.management.j2ee.statistics.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) |
javax.management.j2ee.statistics.Statistic |
unmodifiableView()
This method is the essence of this class.
|
public MutableBoundedRangeStatisticImpl(javax.management.j2ee.statistics.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 javax.management.j2ee.statistics.Statistic unmodifiableView()
unmodifiableView in interface MutableStatisticreset(),
setCount(long)public String getDescription()
getDescription in interface javax.management.j2ee.statistics.Statisticpublic long getLastSampleTime()
getLastSampleTime in interface javax.management.j2ee.statistics.Statisticpublic String getName()
getName in interface javax.management.j2ee.statistics.Statisticpublic long getStartTime()
getStartTime in interface javax.management.j2ee.statistics.Statisticpublic String getUnit()
getUnit in interface javax.management.j2ee.statistics.Statisticpublic javax.management.j2ee.statistics.Statistic modifiableView()
MutableStatisticmodifiableView in interface MutableStatisticpublic long getCurrent()
getCurrent in interface javax.management.j2ee.statistics.RangeStatisticpublic long getHighWaterMark()
getHighWaterMark in interface javax.management.j2ee.statistics.RangeStatisticpublic long getLowWaterMark()
getLowWaterMark in interface javax.management.j2ee.statistics.RangeStatisticpublic long getLowerBound()
getLowerBound in interface javax.management.j2ee.statistics.BoundaryStatisticpublic long getUpperBound()
getUpperBound in interface javax.management.j2ee.statistics.BoundaryStatisticpublic void setDescription(String s)
Copyright © 2019. All rights reserved.