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 CountStatisticImpl
getMessageCount()
Total count for all subscriptionsCountStatisticImpl
getMessageCount(String subKey)
SizeStatisticImpl
getMessageSize()
Total size for all subscriptionsSizeStatisticImpl
getMessageSize(String subKey)
void
removeSubscription(String subKey)
void
reset()
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:
getMessageCount
in classAbstractMessageStoreStatistics
-
getMessageSize
public SizeStatisticImpl getMessageSize()
Total size for all subscriptions- Overrides:
getMessageSize
in 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:Resettable
Reset the statistic- Specified by:
reset
in interfaceResettable
- Overrides:
reset
in classAbstractMessageStoreStatistics
-
-