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 void
appendFieldDescription
(StringBuffer buffer) long
getName()
long
getUnit()
boolean
boolean
void
reset()
Reset the statisticvoid
setDoReset
(boolean doReset) void
setEnabled
(boolean enabled) toString()
protected void
-
Field Details
-
enabled
protected boolean enabled
-
-
Constructor Details
-
StatisticImpl
-
-
Method Details
-
reset
public void reset()Description copied from interface:Resettable
Reset the statistic- Specified by:
reset
in interfaceResettable
-
updateSampleTime
protected void updateSampleTime() -
toString
-
getName
-
getUnit
-
getDescription
- Specified by:
getDescription
in interfaceStatistic
-
getStartTime
public long getStartTime()- Specified by:
getStartTime
in interfaceStatistic
-
getLastSampleTime
public long getLastSampleTime()- Specified by:
getLastSampleTime
in 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
-