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>
An UnsampledStatistic implementation
-
Constructor Summary
ConstructorsConstructorDescriptionUnsampledStatisticImpl(String name, String unit, String description, T defaultValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendFieldDescription(StringBuffer buffer) longlonggetValue()voidreset()Reset the statisticvoidprotected voidMethods inherited from class org.apache.activemq.management.StatisticImpl
getDescription, getName, getUnit, isDoReset, isEnabled, setDoReset, setEnabled, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.activemq.management.Statistic
getDescription, getName, getUnit
-
Constructor Details
-
UnsampledStatisticImpl
-
-
Method Details
-
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
- Specified by:
getValuein interfaceUnsampledStatistic<T>
-
setValue
- Specified by:
setValuein interfaceUnsampledStatistic<T>
-
appendFieldDescription
- Overrides:
appendFieldDescriptionin classStatisticImpl
-