Package org.apache.activemq.management
Class UnsampledStatisticImpl<T>
- java.lang.Object
-
- org.apache.activemq.management.StatisticImpl
-
- org.apache.activemq.management.UnsampledStatisticImpl<T>
-
- All Implemented Interfaces:
Resettable,Statistic,UnsampledStatistic<T>
public class UnsampledStatisticImpl<T> extends StatisticImpl implements UnsampledStatistic<T>
An UnsampledStatisticimplementation
-
-
Constructor Summary
Constructors Constructor Description UnsampledStatisticImpl(String name, String unit, String description, T defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappendFieldDescription(StringBuffer buffer)longgetLastSampleTime()longgetStartTime()TgetValue()voidreset()Reset the statisticvoidsetValue(T value)protected voidupdateSampleTime()-
Methods inherited from class org.apache.activemq.management.StatisticImpl
getDescription, getName, getUnit, isDoReset, isEnabled, setDoReset, setEnabled, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.management.Statistic
getDescription, getName, getUnit
-
-
-
-
Method Detail
-
reset
public void reset()
Description copied from interface:ResettableReset the statistic- Specified by:
resetin interfaceResettable- Overrides:
resetin classStatisticImpl
-
updateSampleTime
protected void updateSampleTime()
- Overrides:
updateSampleTimein classStatisticImpl
-
getStartTime
public long getStartTime()
- Specified by:
getStartTimein interfaceStatistic- Overrides:
getStartTimein classStatisticImpl
-
getLastSampleTime
public long getLastSampleTime()
- Specified by:
getLastSampleTimein interfaceStatistic- Overrides:
getLastSampleTimein classStatisticImpl
-
getValue
public T getValue()
- Specified by:
getValuein interfaceUnsampledStatistic<T>
-
setValue
public void setValue(T value)
- Specified by:
setValuein interfaceUnsampledStatistic<T>
-
appendFieldDescription
protected void appendFieldDescription(StringBuffer buffer)
- Overrides:
appendFieldDescriptionin classStatisticImpl
-
-