public class MutableBoundedRangeStatisticImpl extends Object implements javax.management.j2ee.statistics.BoundedRangeStatistic, MutableCountStatistic
for an immutable implementation
,
Serialized FormConstructor 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 MutableStatistic
public void setCount(long current)
setCount
in interface MutableCountStatistic
count
- long that represents the current value of the Statistic.public javax.management.j2ee.statistics.Statistic unmodifiableView()
unmodifiableView
in interface MutableStatistic
reset()
,
setCount(long)
public String getDescription()
getDescription
in interface javax.management.j2ee.statistics.Statistic
public long getLastSampleTime()
getLastSampleTime
in interface javax.management.j2ee.statistics.Statistic
public String getName()
getName
in interface javax.management.j2ee.statistics.Statistic
public long getStartTime()
getStartTime
in interface javax.management.j2ee.statistics.Statistic
public String getUnit()
getUnit
in interface javax.management.j2ee.statistics.Statistic
public javax.management.j2ee.statistics.Statistic modifiableView()
MutableStatistic
modifiableView
in interface MutableStatistic
public long getCurrent()
getCurrent
in interface javax.management.j2ee.statistics.RangeStatistic
public long getHighWaterMark()
getHighWaterMark
in interface javax.management.j2ee.statistics.RangeStatistic
public long getLowWaterMark()
getLowWaterMark
in interface javax.management.j2ee.statistics.RangeStatistic
public long getLowerBound()
getLowerBound
in interface javax.management.j2ee.statistics.BoundaryStatistic
public long getUpperBound()
getUpperBound
in interface javax.management.j2ee.statistics.BoundaryStatistic
public void setDescription(String s)
Copyright © 2020. All rights reserved.