public final class AverageRangeStatisticImpl extends StatisticImpl implements AverageRangeStatistic, InvocationHandler
LAST_SAMPLE_TIME, NEWLINE, sampleTime, START_TIME, statMap, UNIT_COUNT, UNIT_MICROSECOND, UNIT_MILLISECOND, UNIT_NANOSECOND, UNIT_SECOND
Constructor and Description |
---|
AverageRangeStatisticImpl(long curVal,
long highMark,
long lowMark,
String name,
String unit,
String desc,
long startTime,
long sampleTime) |
Modifier and Type | Method and Description |
---|---|
long |
getAverage() |
long |
getCurrent()
The current value of this attribute.
|
long |
getHighWaterMark()
The highest value this attribute has held since the beginninYg of the measurement.
|
long |
getLowWaterMark()
The lowest value this attribute has held since the beginning of the measurement.
|
Map |
getStaticAsMap() |
AverageRangeStatistic |
getStatistic() |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
void |
reset() |
void |
setCurrent(long curVal) |
String |
toString() |
checkMethod, getDescription, getLastSampleTime, getName, getStartTime, getUnit, isValidString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription, getLastSampleTime, getName, getStartTime, getUnit
public AverageRangeStatistic getStatistic()
public String toString()
toString
in class StatisticImpl
public Map getStaticAsMap()
getStaticAsMap
in class StatisticImpl
public void reset()
reset
in class StatisticImpl
public long getAverage()
getAverage
in interface AverageRangeStatistic
public long getCurrent()
RangeStatistic
getCurrent
in interface RangeStatistic
public void setCurrent(long curVal)
public long getHighWaterMark()
RangeStatistic
getHighWaterMark
in interface RangeStatistic
public long getLowWaterMark()
RangeStatistic
getLowWaterMark
in interface RangeStatistic
Copyright © 2017 Oracle. All rights reserved.