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
 long getDequeueCounter()
           
 long getEnqueueCounter()
           
 String getLocalAddress()
           
 String getLocalBrokerName()
           
 ObjectName getMbeanObjectName()
           
 String getRemoteAddress()
           
 String getRemoteBrokerName()
           
 void serviceLocalException(Throwable error)
          Service an exception received from the Local Broker connection.
 void serviceRemoteException(Throwable error)
          Service an exception received from the Remote Broker connection.
 void setMbeanObjectName(ObjectName objectName)
           
 void setNetworkBridgeListener(NetworkBridgeListener listener)
          Set the NetworkBridgeFailedListener
 
Methods inherited from interface org.apache.activemq.Service
start, stop
 

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.

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.

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.


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.