Class SubscriptionStatistics
- java.lang.Object
-
- org.apache.activemq.management.StatisticImpl
-
- org.apache.activemq.management.StatsImpl
-
- org.apache.activemq.broker.region.SubscriptionStatistics
-
- All Implemented Interfaces:
Statistic
,Stats
,Resettable
public class SubscriptionStatistics extends StatsImpl
The J2EE Statistics for a Subsription.
-
-
Field Summary
Fields Modifier and Type Field Description protected CountStatisticImpl
consumedCount
protected CountStatisticImpl
dequeues
protected CountStatisticImpl
dispatched
protected CountStatisticImpl
enqueues
protected SizeStatisticImpl
inflightMessageSize
-
Fields inherited from class org.apache.activemq.management.StatisticImpl
enabled
-
-
Constructor Summary
Constructors Constructor Description SubscriptionStatistics()
SubscriptionStatistics(boolean enabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CountStatisticImpl
getConsumedCount()
CountStatisticImpl
getDequeues()
CountStatisticImpl
getDispatched()
CountStatisticImpl
getEnqueues()
SizeStatisticImpl
getInflightMessageSize()
void
reset()
Reset the statisticvoid
setEnabled(boolean enabled)
void
setParent(SubscriptionStatistics 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
-
consumedCount
protected CountStatisticImpl consumedCount
-
enqueues
protected CountStatisticImpl enqueues
-
dequeues
protected CountStatisticImpl dequeues
-
dispatched
protected CountStatisticImpl dispatched
-
inflightMessageSize
protected SizeStatisticImpl inflightMessageSize
-
-
Method Detail
-
getConsumedCount
public CountStatisticImpl getConsumedCount()
-
getEnqueues
public CountStatisticImpl getEnqueues()
-
getDequeues
public CountStatisticImpl getDequeues()
-
getDispatched
public CountStatisticImpl getDispatched()
-
getInflightMessageSize
public SizeStatisticImpl getInflightMessageSize()
-
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(SubscriptionStatistics parent)
-
-