|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.admin.monitor.stats.MutableAverageRangeStatisticImpl
public class MutableAverageRangeStatisticImpl
| Field Summary | |
|---|---|
static long |
DEFAULT_MAX_BOUND
DEFAULT_UPPER_BOUND is maximum value Long can attain |
| Constructor Summary | |
|---|---|
MutableAverageRangeStatisticImpl(BoundedRangeStatistic initial)
Constructs an instance of MutableAverageRangeStatisticImpl that encapsulates the given Statistic. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long DEFAULT_MAX_BOUND
| Constructor Detail |
|---|
public MutableAverageRangeStatisticImpl(BoundedRangeStatistic initial)
initial - an instance of BoundedRangeStatistic that represents initial state| Method Detail |
|---|
public Statistic modifiableView()
MutableStatistic
modifiableView in interface MutableStatisticpublic Statistic unmodifiableView()
MutableStatisticstatistic
and com.sun.enterprise.admin.monitor.stats packages.
unmodifiableView in interface MutableStatisticpublic void reset()
MutableStatistic
reset in interface MutableStatisticpublic void setCount(long current)
MutableCountStatistic
setCount in interface MutableCountStatisticcurrent - long that specifies the value when measured (sampled).public long getAverage()
getAverage in interface AverageRangeStatisticpublic long getCurrent()
RangeStatistic
getCurrent in interface RangeStatisticpublic String getDescription()
Statistic
getDescription in interface Statisticpublic long getHighWaterMark()
RangeStatistic
getHighWaterMark in interface RangeStatisticpublic long getLastSampleTime()
Statistic
getLastSampleTime in interface Statisticpublic long getLowWaterMark()
RangeStatistic
getLowWaterMark in interface RangeStatisticpublic String getName()
Statistic
getName in interface Statisticpublic long getStartTime()
Statistic
getStartTime in interface Statisticpublic String getUnit()
Statistic
getUnit in interface Statistic
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||