Class BoundedRangeStatisticImpl
- java.lang.Object
-
- org.glassfish.external.statistics.impl.StatisticImpl
-
- org.glassfish.external.statistics.impl.BoundedRangeStatisticImpl
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
,BoundaryStatistic
,BoundedRangeStatistic
,RangeStatistic
,Statistic
public final class BoundedRangeStatisticImpl extends StatisticImpl implements BoundedRangeStatistic, java.lang.reflect.InvocationHandler
-
-
Field Summary
Fields Modifier and Type Field Description private BoundedRangeStatistic
bs
private long
currentVal
private long
highWaterMark
private long
initCurrentVal
private long
initHighWaterMark
private long
initLowerBound
private long
initLowWaterMark
private long
initUpperBound
private long
lowerBound
private long
lowWaterMark
private long
upperBound
-
Fields inherited from class org.glassfish.external.statistics.impl.StatisticImpl
LAST_SAMPLE_TIME, NEWLINE, sampleTime, START_TIME, statMap, UNIT_COUNT, UNIT_MICROSECOND, UNIT_MILLISECOND, UNIT_NANOSECOND, UNIT_SECOND
-
-
Constructor Summary
Constructors Constructor Description BoundedRangeStatisticImpl(long curVal, long highMark, long lowMark, long upper, long lower, java.lang.String name, java.lang.String unit, java.lang.String desc, long startTime, long sampleTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCurrent()
The current value of this attribute.long
getHighWaterMark()
The highest value this attribute has held since the beginninYg of the measurement.long
getLowerBound()
The lower limit of the value of this attribute.The upper limit of the value of this attribute.long
getLowWaterMark()
The lowest value this attribute has held since the beginning of the measurement.java.util.Map
getStaticAsMap()
BoundedRangeStatistic
getStatistic()
long
getUpperBound()
The upper limit of the value of this attribute.java.lang.Object
invoke(java.lang.Object proxy, java.lang.reflect.Method m, java.lang.Object[] args)
void
reset()
void
setCurrent(long curVal)
void
setHighWaterMark(long hwm)
void
setLowWaterMark(long lwm)
java.lang.String
toString()
-
Methods inherited from class org.glassfish.external.statistics.impl.StatisticImpl
checkMethod, getDescription, getLastSampleTime, getName, getStartTime, getUnit, isValidString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.glassfish.external.statistics.Statistic
getDescription, getLastSampleTime, getName, getStartTime, getUnit
-
-
-
-
Field Detail
-
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
private final BoundedRangeStatistic bs
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classStatisticImpl
-
getStatistic
public BoundedRangeStatistic getStatistic()
-
getStaticAsMap
public java.util.Map getStaticAsMap()
- Overrides:
getStaticAsMap
in classStatisticImpl
-
getCurrent
public long getCurrent()
Description copied from interface:RangeStatistic
The current value of this attribute.- Specified by:
getCurrent
in interfaceRangeStatistic
-
setCurrent
public void setCurrent(long curVal)
-
getHighWaterMark
public long getHighWaterMark()
Description copied from interface:RangeStatistic
The highest value this attribute has held since the beginninYg of the measurement.- Specified by:
getHighWaterMark
in interfaceRangeStatistic
-
setHighWaterMark
public void setHighWaterMark(long hwm)
-
getLowWaterMark
public long getLowWaterMark()
Description copied from interface:RangeStatistic
The lowest value this attribute has held since the beginning of the measurement.- Specified by:
getLowWaterMark
in interfaceRangeStatistic
-
setLowWaterMark
public void setLowWaterMark(long lwm)
-
getLowerBound
public long getLowerBound()
Description copied from interface:BoundaryStatistic
The lower limit of the value of this attribute.The upper limit of the value of this attribute.- Specified by:
getLowerBound
in interfaceBoundaryStatistic
-
getUpperBound
public long getUpperBound()
Description copied from interface:BoundaryStatistic
The upper limit of the value of this attribute.- Specified by:
getUpperBound
in interfaceBoundaryStatistic
-
reset
public void reset()
- Overrides:
reset
in classStatisticImpl
-
invoke
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method m, java.lang.Object[] args) throws java.lang.Throwable
- Specified by:
invoke
in interfacejava.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
-
-