Package org.apache.activemq.store
Class MessageStoreStatistics
- java.lang.Object
-
- org.apache.activemq.management.StatisticImpl
-
- org.apache.activemq.management.StatsImpl
-
- org.apache.activemq.store.MessageStoreStatistics
-
- All Implemented Interfaces:
Statistic,Stats,Resettable
public class MessageStoreStatistics extends StatsImpl
The J2EE Statistics for a Message Sore
-
-
Field Summary
Fields Modifier and Type Field Description protected CountStatisticImplmessageCountprotected SizeStatisticImplmessageSize-
Fields inherited from class org.apache.activemq.management.StatisticImpl
enabled
-
-
Constructor Summary
Constructors Constructor Description MessageStoreStatistics()MessageStoreStatistics(boolean enabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CountStatisticImplgetMessageCount()SizeStatisticImplgetMessageSize()voidreset()Reset the statisticvoidsetEnabled(boolean enabled)voidsetParent(MessageStoreStatistics 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 CountStatisticImpl messageCount
-
messageSize
protected SizeStatisticImpl messageSize
-
-
Method Detail
-
getMessageCount
public CountStatisticImpl getMessageCount()
-
getMessageSize
public SizeStatisticImpl getMessageSize()
-
reset
public void reset()
Description copied from interface:ResettableReset the statistic- Specified by:
resetin interfaceResettable- Overrides:
resetin classStatsImpl
-
setEnabled
public void setEnabled(boolean enabled)
- Overrides:
setEnabledin classStatisticImpl- Parameters:
enabled- the enabled to set
-
setParent
public void setParent(MessageStoreStatistics parent)
-
-