|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.admin.monitor.stats.MutableBoundedRangeStatisticImpl
public class MutableBoundedRangeStatisticImpl
An implementation of MutableCountStatistic that provides ways to change the state externally through mutators. Convenience class that is useful for components that gather the statistical data. By merely changing the count (which is a mandatory measurement), rest of the statistical information could be deduced.
for an immutable implementation,
Serialized Form| Constructor Summary | |
|---|---|
MutableBoundedRangeStatisticImpl(BoundedRangeStatistic initial)
Constructs an instance of MutableCountStatistic that encapsulates the given Statistic. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MutableBoundedRangeStatisticImpl(BoundedRangeStatistic initial)
initial - an instance of BoundedRangeStatistic that represents initial state| Method Detail |
|---|
public 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()
Statistic
getDescription in interface Statisticpublic long getLastSampleTime()
Statistic
getLastSampleTime in interface Statisticpublic String getName()
Statistic
getName in interface Statisticpublic long getStartTime()
Statistic
getStartTime in interface Statisticpublic String getUnit()
Statistic
getUnit in interface Statisticpublic Statistic modifiableView()
MutableStatistic
modifiableView in interface MutableStatisticpublic long getCurrent()
RangeStatistic
getCurrent in interface RangeStatisticpublic long getHighWaterMark()
RangeStatistic
getHighWaterMark in interface RangeStatisticpublic long getLowWaterMark()
RangeStatistic
getLowWaterMark in interface RangeStatisticpublic long getLowerBound()
BoundaryStatistic
getLowerBound in interface BoundaryStatisticpublic long getUpperBound()
BoundaryStatistic
getUpperBound in interface BoundaryStatisticpublic void setDescription(String s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||