Package org.apache.activemq.management
Class RangeStatisticImpl
- java.lang.Object
-
- org.apache.activemq.management.StatisticImpl
-
- org.apache.activemq.management.RangeStatisticImpl
-
- All Implemented Interfaces:
Statistic
,Resettable
- Direct Known Subclasses:
BoundedRangeStatisticImpl
public class RangeStatisticImpl extends StatisticImpl
A range statistic implementation
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.management.StatisticImpl
enabled
-
-
Constructor Summary
Constructors Constructor Description RangeStatisticImpl(String name, String unit, String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
appendFieldDescription(StringBuffer buffer)
long
getCurrent()
long
getHighWaterMark()
long
getLowWaterMark()
void
reset()
Reset the statisticvoid
setCurrent(long current)
-
Methods inherited from class org.apache.activemq.management.StatisticImpl
getDescription, getLastSampleTime, getName, getStartTime, getUnit, isDoReset, isEnabled, setDoReset, setEnabled, toString, updateSampleTime
-
-
-
-
Method Detail
-
reset
public void reset()
Description copied from interface:Resettable
Reset the statistic- Specified by:
reset
in interfaceResettable
- Overrides:
reset
in classStatisticImpl
-
getHighWaterMark
public long getHighWaterMark()
-
getLowWaterMark
public long getLowWaterMark()
-
getCurrent
public long getCurrent()
-
setCurrent
public void setCurrent(long current)
-
appendFieldDescription
protected void appendFieldDescription(StringBuffer buffer)
- Overrides:
appendFieldDescription
in classStatisticImpl
-
-