Class RangeStatisticImpl
java.lang.Object
org.glassfish.external.statistics.impl.StatisticImpl
org.glassfish.external.statistics.impl.RangeStatisticImpl
- All Implemented Interfaces:
InvocationHandler, RangeStatistic, Statistic
public final class RangeStatisticImpl
extends StatisticImpl
implements RangeStatistic, InvocationHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate longprivate final longprivate final longprivate final longprivate longprivate final RangeStatisticFields inherited from class StatisticImpl
LAST_SAMPLE_TIME, NEWLINE, sampleTime, START_TIME, statMap, UNIT_COUNT, UNIT_MICROSECOND, UNIT_MILLISECOND, UNIT_NANOSECOND, UNIT_SECOND -
Constructor Summary
ConstructorsConstructorDescriptionRangeStatisticImpl(long curVal, long highMark, long lowMark, String name, String unit, String desc, long startTime, long sampleTime) -
Method Summary
Modifier and TypeMethodDescriptionlongThe current value of this attribute.longReturns the highest value of this statistic, since measurement started.longReturns the lowest value of this statistic, since measurement started.voidreset()voidsetCurrent(long curVal) voidsetHighWaterMark(long hwm) voidsetLowWaterMark(long lwm) toString()Methods inherited from class StatisticImpl
checkMethod, getDescription, getLastSampleTime, getName, getStartTime, getUnit, isValidStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Statistic
getDescription, getLastSampleTime, getName, getStartTime, getUnit
-
Field Details
-
currentVal
private long currentVal -
highWaterMark
private long highWaterMark -
lowWaterMark
private long lowWaterMark -
initCurrentVal
private final long initCurrentVal -
initHighWaterMark
private final long initHighWaterMark -
initLowWaterMark
private final long initLowWaterMark -
rs
-
-
Constructor Details
-
RangeStatisticImpl
-
-
Method Details
-
getStatistic
-
getStaticAsMap
- Overrides:
getStaticAsMapin classStatisticImpl
-
getCurrent
public long getCurrent()Description copied from interface:RangeStatisticThe current value of this attribute.- Specified by:
getCurrentin interfaceRangeStatistic
-
setCurrent
public void setCurrent(long curVal) -
getHighWaterMark
public long getHighWaterMark()Returns the highest value of this statistic, since measurement started.- Specified by:
getHighWaterMarkin interfaceRangeStatistic
-
setHighWaterMark
public void setHighWaterMark(long hwm) -
getLowWaterMark
public long getLowWaterMark()Returns the lowest value of this statistic, since measurement started.- Specified by:
getLowWaterMarkin interfaceRangeStatistic
-
setLowWaterMark
public void setLowWaterMark(long lwm) -
reset
public void reset()- Overrides:
resetin classStatisticImpl
-
toString
- Overrides:
toStringin classStatisticImpl
-
invoke
-