Class BoundedRangeStatisticImpl
java.lang.Object
org.glassfish.external.statistics.impl.StatisticImpl
org.glassfish.external.statistics.impl.BoundedRangeStatisticImpl
- All Implemented Interfaces:
InvocationHandler, BoundaryStatistic, BoundedRangeStatistic, RangeStatistic, Statistic
public final class BoundedRangeStatisticImpl
extends StatisticImpl
implements BoundedRangeStatistic, InvocationHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BoundedRangeStatisticprivate longprivate longprivate final longprivate final longprivate final longprivate final longprivate final longprivate longprivate longprivate longFields inherited from class StatisticImpl
LAST_SAMPLE_TIME, NEWLINE, sampleTime, START_TIME, statMap, UNIT_COUNT, UNIT_MICROSECOND, UNIT_MILLISECOND, UNIT_NANOSECOND, UNIT_SECOND -
Constructor Summary
ConstructorsConstructorDescriptionBoundedRangeStatisticImpl(long curVal, long highMark, long lowMark, long upper, long lower, String name, String unit, String desc, long startTime, long sampleTime) -
Method Summary
Modifier and TypeMethodDescriptionlongThe current value of this attribute.longThe highest value this attribute has held since the beginninYg of the measurement.longThe lower limit of the value of this attribute.The upper limit of the value of this attribute.longThe lowest value this attribute has held since the beginning of the measurement.longThe upper limit of the value of this attribute.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
-
lowerBound
private long lowerBound -
upperBound
private long upperBound -
currentVal
private long currentVal -
highWaterMark
private long highWaterMark -
lowWaterMark
private long lowWaterMark -
initLowerBound
private final long initLowerBound -
initUpperBound
private final long initUpperBound -
initCurrentVal
private final long initCurrentVal -
initHighWaterMark
private final long initHighWaterMark -
initLowWaterMark
private final long initLowWaterMark -
bs
-
-
Constructor Details
-
BoundedRangeStatisticImpl
-
-
Method Details
-
toString
- Overrides:
toStringin classStatisticImpl
-
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()Description copied from interface:RangeStatisticThe highest value this attribute has held since the beginninYg of the measurement.- Specified by:
getHighWaterMarkin interfaceRangeStatistic
-
setHighWaterMark
public void setHighWaterMark(long hwm) -
getLowWaterMark
public long getLowWaterMark()Description copied from interface:RangeStatisticThe lowest value this attribute has held since the beginning of the measurement.- Specified by:
getLowWaterMarkin interfaceRangeStatistic
-
setLowWaterMark
public void setLowWaterMark(long lwm) -
getLowerBound
public long getLowerBound()Description copied from interface:BoundaryStatisticThe lower limit of the value of this attribute.The upper limit of the value of this attribute.- Specified by:
getLowerBoundin interfaceBoundaryStatistic
-
getUpperBound
public long getUpperBound()Description copied from interface:BoundaryStatisticThe upper limit of the value of this attribute.- Specified by:
getUpperBoundin interfaceBoundaryStatistic
-
reset
public void reset()- Overrides:
resetin classStatisticImpl
-
invoke
-