Package org.apache.activemq.management
Class StatisticImpl
java.lang.Object
org.apache.activemq.management.StatisticImpl
- All Implemented Interfaces:
Resettable,Statistic
- Direct Known Subclasses:
BoundaryStatisticImpl,CountStatisticImpl,PollCountStatisticImpl,RangeStatisticImpl,SizeStatisticImpl,StatsImpl,TimeStatisticImpl
Base class for a Statistic implementation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendFieldDescription(StringBuffer buffer) longgetName()longgetUnit()booleanbooleanvoidreset()Reset the statisticvoidsetDoReset(boolean doReset) voidsetEnabled(boolean enabled) toString()protected void
-
Field Details
-
enabled
protected boolean enabled
-
-
Constructor Details
-
StatisticImpl
-
-
Method Details
-
reset
public void reset()Description copied from interface:ResettableReset the statistic- Specified by:
resetin interfaceResettable
-
updateSampleTime
protected void updateSampleTime() -
toString
-
getName
-
getUnit
-
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
-