Package org.apache.activemq.management
Class StatisticImpl
- java.lang.Object
-
- org.apache.activemq.management.StatisticImpl
-
- All Implemented Interfaces:
Statistic,Resettable
- Direct Known Subclasses:
BoundaryStatisticImpl,CountStatisticImpl,PollCountStatisticImpl,RangeStatisticImpl,SizeStatisticImpl,StatsImpl,TimeStatisticImpl
public class StatisticImpl extends Object implements Statistic, Resettable
Base class for a Statistic implementation
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanenabled
-
Constructor Summary
Constructors Constructor Description StatisticImpl(String name, String unit, String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappendFieldDescription(StringBuffer buffer)StringgetDescription()longgetLastSampleTime()StringgetName()longgetStartTime()StringgetUnit()booleanisDoReset()booleanisEnabled()voidreset()Reset the statisticvoidsetDoReset(boolean doReset)voidsetEnabled(boolean enabled)StringtoString()protected voidupdateSampleTime()
-
-
-
Method Detail
-
reset
public void reset()
Description copied from interface:ResettableReset the statistic- Specified by:
resetin interfaceResettable
-
updateSampleTime
protected void updateSampleTime()
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceStatistic
-
getStartTime
public long getStartTime()
- Specified by:
getStartTimein interfaceStatistic
-
getLastSampleTime
public long getLastSampleTime()
- Specified by:
getLastSampleTimein interfaceStatistic
-
isEnabled
public boolean isEnabled()
- Returns:
- the enabled
-
setEnabled
public void setEnabled(boolean enabled)
- Parameters:
enabled- the enabled to set
-
isDoReset
public boolean isDoReset()
- Returns:
- the doReset
-
setDoReset
public void setDoReset(boolean doReset)
- Parameters:
doReset- the doReset to set
-
appendFieldDescription
protected void appendFieldDescription(StringBuffer buffer)
-
-