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 CountStatisticImpl
dequeues
protected CountStatisticImpl
enqueues
protected CountStatisticImpl
receivedCount
-
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 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.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 subscriptionCountStatisticImpl
getReceivedCount()
The number of messages that have been received by the NetworkBridge from the remote broker.void
reset()
Reset the statisticvoid
setEnabled(boolean enabled)
void
setParent(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: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(NetworkBridgeStatistics parent)
-
-