RangeStatisticImplpublic final class RangeStatisticImpl extends StatisticImpl implements javax.management.j2ee.statistics.RangeStatisticAn implementation of a RangeStatistic. All instances of this class are
immutable. Provides all the necessary accessors for properties. |
Fields Summary |
---|
private final long | currentVal | private final long | highWaterMark | private final long | lowWaterMark |
Constructors Summary |
---|
public RangeStatisticImpl(long curVal, long highMark, long lowMark, String name, String unit, String desc, long startTime, long sampleTime)Constructs an immutable instance of RangeStatistic.
super(name, unit, desc, startTime, sampleTime);
currentVal = curVal;
highWaterMark = highMark;
lowWaterMark = lowMark;
|
Methods Summary |
---|
public long | getCurrent()Returns the current value of this statistic.
return currentVal;
| public long | getHighWaterMark()Returns the highest value of this statistic, since measurement started.
return highWaterMark;
| public long | getLowWaterMark()Returns the lowest value of this statistic, since measurement started.
return lowWaterMark;
| public final java.lang.String | toString()
return super.toString() + NEWLINE +
"Current: " + getCurrent() + NEWLINE +
"LowWaterMark: " + getLowWaterMark() + NEWLINE +
"HighWaterMark: " + getHighWaterMark();
|
|