Package org.apache.activemq.store
Class MessageStoreSubscriptionStatistics
- java.lang.Object
-
- org.apache.activemq.management.StatisticImpl
-
- org.apache.activemq.management.StatsImpl
-
- org.apache.activemq.store.AbstractMessageStoreStatistics
-
- org.apache.activemq.store.MessageStoreSubscriptionStatistics
-
- All Implemented Interfaces:
Statistic,Stats,Resettable
public class MessageStoreSubscriptionStatistics extends AbstractMessageStoreStatistics
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.store.AbstractMessageStoreStatistics
messageCount, messageSize
-
Fields inherited from class org.apache.activemq.management.StatisticImpl
enabled
-
-
Constructor Summary
Constructors Constructor Description MessageStoreSubscriptionStatistics(boolean enabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CountStatisticImplgetMessageCount()Total count for all subscriptionsCountStatisticImplgetMessageCount(String subKey)SizeStatisticImplgetMessageSize()Total size for all subscriptionsSizeStatisticImplgetMessageSize(String subKey)voidremoveSubscription(String subKey)voidreset()Reset the statistic-
Methods inherited from class org.apache.activemq.store.AbstractMessageStoreStatistics
setEnabled, setParent
-
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
-
-
-
-
Method Detail
-
getMessageCount
public CountStatisticImpl getMessageCount()
Total count for all subscriptions- Overrides:
getMessageCountin classAbstractMessageStoreStatistics
-
getMessageSize
public SizeStatisticImpl getMessageSize()
Total size for all subscriptions- Overrides:
getMessageSizein classAbstractMessageStoreStatistics
-
getMessageCount
public CountStatisticImpl getMessageCount(String subKey)
-
getMessageSize
public SizeStatisticImpl getMessageSize(String subKey)
-
removeSubscription
public void removeSubscription(String subKey)
-
reset
public void reset()
Description copied from interface:ResettableReset the statistic- Specified by:
resetin interfaceResettable- Overrides:
resetin classAbstractMessageStoreStatistics
-
-