org.glassfish.external.statistics.impl
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
RangeStatisticImpl
public RangeStatisticImpl(long curVal,
long highMark,
long lowMark,
String name,
String unit,
String desc,
long startTime,
long sampleTime)
getStatistic
public RangeStatistic getStatistic()
getStaticAsMap
public Map getStaticAsMap()
- Overrides:
getStaticAsMap in class StatisticImpl
getCurrent
public long getCurrent()
- Description copied from interface:
RangeStatistic
- The current value of this attribute.
- Specified by:
getCurrent in interface RangeStatistic
setCurrent
public void setCurrent(long curVal)
getHighWaterMark
public long getHighWaterMark()
- Returns the highest value of this statistic, since measurement started.
- Specified by:
getHighWaterMark in interface RangeStatistic
setHighWaterMark
public void setHighWaterMark(long hwm)
getLowWaterMark
public long getLowWaterMark()
- Returns the lowest value of this statistic, since measurement started.
- Specified by:
getLowWaterMark in interface RangeStatistic
setLowWaterMark
public void setLowWaterMark(long lwm)
reset
public void reset()
- Overrides:
reset in class StatisticImpl
toString
public String toString()
- Overrides:
toString in class StatisticImpl
invoke
public Object invoke(Object proxy,
Method m,
Object[] args)
throws Throwable
- Specified by:
invoke in interface InvocationHandler
- Throws:
Throwable
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.