Package org.apache.activemq.store
Class AbstractMessageStoreStatistics
- java.lang.Object
-
- org.apache.activemq.management.StatisticImpl
-
- org.apache.activemq.management.StatsImpl
-
- org.apache.activemq.store.AbstractMessageStoreStatistics
-
- All Implemented Interfaces:
Statistic
,Stats
,Resettable
- Direct Known Subclasses:
MessageStoreSubscriptionStatistics
public abstract class AbstractMessageStoreStatistics extends StatsImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected CountStatisticImpl
messageCount
protected SizeStatisticImpl
messageSize
-
Fields inherited from class org.apache.activemq.management.StatisticImpl
enabled
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractMessageStoreStatistics(boolean enabled, String countDescription, String sizeDescription)
protected
AbstractMessageStoreStatistics(String countDescription, String sizeDescription)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CountStatisticImpl
getMessageCount()
SizeStatisticImpl
getMessageSize()
void
reset()
Reset the statisticvoid
setEnabled(boolean enabled)
void
setParent(AbstractMessageStoreStatistics parent)
-
Methods inherited from class org.apache.activemq.management.StatsImpl
addStatistic, getStatistic, getStatisticNames, getStatistics
-
Methods inherited from class org.apache.activemq.management.StatisticImpl
appendFieldDescription, getDescription, getLastSampleTime, getName, getStartTime, getUnit, isDoReset, isEnabled, setDoReset, toString, updateSampleTime
-
-
-
-
Field Detail
-
messageCount
protected final CountStatisticImpl messageCount
-
messageSize
protected final SizeStatisticImpl messageSize
-
-
Method Detail
-
getMessageCount
public CountStatisticImpl getMessageCount()
-
getMessageSize
public SizeStatisticImpl getMessageSize()
-
reset
public void reset()
Description copied from interface:Resettable
Reset the statistic- Specified by:
reset
in interfaceResettable
- Overrides:
reset
in classStatsImpl
-
setEnabled
public void setEnabled(boolean enabled)
- Overrides:
setEnabled
in classStatisticImpl
- Parameters:
enabled
- the enabled to set
-
setParent
public void setParent(AbstractMessageStoreStatistics parent)
-
-