public final class RangeStatisticImpl extends StatisticImpl implements RangeStatistic
DEFAULT_UNIT, DEFAULT_VALUE, localStrMgr, NEWLINE| Constructor and Description |
|---|
RangeStatisticImpl(long curVal,
long highMark,
long lowMark,
String name,
String unit,
String desc,
long startTime,
long sampleTime)
Constructs an immutable instance of RangeStatistic.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCurrent()
Returns the current value of this statistic.
|
long |
getHighWaterMark()
Returns the highest value of this statistic, since measurement started.
|
long |
getLowWaterMark()
Returns the lowest value of this statistic, since measurement started.
|
String |
toString() |
getDescription, getLastSampleTime, getName, getStartTime, getUnit, setDescriptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescription, getLastSampleTime, getName, getStartTime, getUnitpublic RangeStatisticImpl(long curVal,
long highMark,
long lowMark,
String name,
String unit,
String desc,
long startTime,
long sampleTime)
curVal - The current value of this statistichighMark - The highest value of this statistic, since measurement
startedlowMark - The lowest value of this statistic, since measurement
startedname - The name of the statisticunit - The unit of measurement for this statisticdesc - A brief description of the statisticstartTime - Time in milliseconds at which the measurement was startedsampleTime - Time at which the last measurement was done.public long getCurrent()
getCurrent in interface RangeStatisticpublic long getHighWaterMark()
getHighWaterMark in interface RangeStatisticpublic long getLowWaterMark()
getLowWaterMark in interface RangeStatisticpublic final String toString()
toString in class StatisticImplCopyright © 2017. All rights reserved.