Package org.apache.activemq.network
Class NetworkBridgeStatistics
- java.lang.Object
-
- org.apache.activemq.management.StatisticImpl
-
- org.apache.activemq.management.StatsImpl
-
- org.apache.activemq.network.NetworkBridgeStatistics
-
- All Implemented Interfaces:
Statistic,Stats,Resettable
public class NetworkBridgeStatistics extends StatsImpl
The Statistics for a NetworkBridge.
-
-
Field Summary
Fields Modifier and Type Field Description protected CountStatisticImpldequeuesprotected CountStatisticImplenqueuesprotected CountStatisticImplreceivedCount-
Fields inherited from class org.apache.activemq.management.StatisticImpl
enabled
-
-
Constructor Summary
Constructors Constructor Description NetworkBridgeStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CountStatisticImplgetDequeues()The current number of dequeues this bridge has, which is the number of messages actually sent to and received by the remote broker.CountStatisticImplgetEnqueues()The current number of enqueues this bridge has, which is the number of potential messages to be forwarded Messages may not be forwarded if there is no subscriptionCountStatisticImplgetReceivedCount()The number of messages that have been received by the NetworkBridge from the remote broker.voidreset()Reset the statisticvoidsetEnabled(boolean enabled)voidsetParent(NetworkBridgeStatistics 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
-
enqueues
protected CountStatisticImpl enqueues
-
dequeues
protected CountStatisticImpl dequeues
-
receivedCount
protected CountStatisticImpl receivedCount
-
-
Method Detail
-
getEnqueues
public CountStatisticImpl getEnqueues()
The current number of enqueues this bridge has, which is the number of potential messages to be forwarded Messages may not be forwarded if there is no subscription- Returns:
-
getDequeues
public CountStatisticImpl getDequeues()
The current number of dequeues this bridge has, which is the number of messages actually sent to and received by the remote broker.- Returns:
-
getReceivedCount
public CountStatisticImpl getReceivedCount()
The number of messages that have been received by the NetworkBridge from the remote broker. Only applies for Duplex bridges.- Returns:
-
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(NetworkBridgeStatistics parent)
-
-