Package org.apache.activemq.network
Interface NetworkBridge
-
- All Superinterfaces:
Service
- All Known Implementing Classes:
CompositeDemandForwardingBridge,ConduitBridge,DemandForwardingBridge,DemandForwardingBridgeSupport,DurableConduitBridge
public interface NetworkBridge extends Service
Represents a network bridge interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetDequeueCounter()longgetEnqueueCounter()StringgetLocalAddress()StringgetLocalBrokerName()ObjectNamegetMbeanObjectName()NetworkBridgeStatisticsgetNetworkBridgeStatistics()StringgetRemoteAddress()StringgetRemoteBrokerId()StringgetRemoteBrokerName()voidresetStats()voidserviceLocalException(Throwable error)Service an exception received from the Local Broker connection.voidserviceRemoteException(Throwable error)Service an exception received from the Remote Broker connection.voidsetMbeanObjectName(ObjectName objectName)voidsetNetworkBridgeListener(NetworkBridgeListener listener)Set the NetworkBridgeFailedListener
-
-
-
Method Detail
-
serviceRemoteException
void serviceRemoteException(Throwable error)
Service an exception received from the Remote Broker connection.- Parameters:
error-
-
serviceLocalException
void serviceLocalException(Throwable error)
Service an exception received from the Local Broker connection.- Parameters:
error-
-
setNetworkBridgeListener
void setNetworkBridgeListener(NetworkBridgeListener listener)
Set the NetworkBridgeFailedListener- Parameters:
listener-
-
getRemoteAddress
String getRemoteAddress()
- Returns:
- the network address of the remote broker connection.
-
getRemoteBrokerName
String getRemoteBrokerName()
- Returns:
- the name of the remote broker this bridge is connected to.
-
getRemoteBrokerId
String getRemoteBrokerId()
- Returns:
- the id of the remote broker this bridge is connected to.
-
getLocalAddress
String getLocalAddress()
- Returns:
- the network address of the local broker connection.
-
getLocalBrokerName
String getLocalBrokerName()
- Returns:
- the name of the local broker this bridge is connected to.
-
getEnqueueCounter
long getEnqueueCounter()
- Returns:
- the current number of enqueues this bridge has.
-
getDequeueCounter
long getDequeueCounter()
- Returns:
- the current number of dequeues this bridge has.
-
getNetworkBridgeStatistics
NetworkBridgeStatistics getNetworkBridgeStatistics()
- Returns:
- the statistics for this NetworkBridge
-
setMbeanObjectName
void setMbeanObjectName(ObjectName objectName)
- Parameters:
objectName- The ObjectName assigned to this bridge in the MBean server.
-
getMbeanObjectName
ObjectName getMbeanObjectName()
- Returns:
- the MBean name used to identify this bridge in the MBean server.
-
resetStats
void resetStats()
-
-