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
- Author:
- Sreenivas Munnangi
-
-
Field Summary
-
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 RangeStatisticImpl(long curVal, long highMark, long lowMark, String name, String unit, String desc, long startTime, long sampleTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCurrent()The current value of this attribute.longgetHighWaterMark()Returns the highest value of this statistic, since measurement started.longgetLowWaterMark()Returns the lowest value of this statistic, since measurement started.MapgetStaticAsMap()RangeStatisticgetStatistic()Objectinvoke(Object proxy, Method m, Object[] args)voidreset()voidsetCurrent(long curVal)voidsetHighWaterMark(long hwm)voidsetLowWaterMark(long lwm)StringtoString()-
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
-
-
-
-
Method Detail
-
getStatistic
public RangeStatistic getStatistic()
-
getStaticAsMap
public Map 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
public String toString()
- Overrides:
toStringin classStatisticImpl
-
-