org.apache.activemq.network
Class DiscoveryNetworkConnector
java.lang.Object
org.apache.activemq.network.NetworkBridgeConfiguration
org.apache.activemq.network.NetworkConnector
org.apache.activemq.network.DiscoveryNetworkConnector
- All Implemented Interfaces:
- Service, DiscoveryListener
public class DiscoveryNetworkConnector
- extends NetworkConnector
- implements DiscoveryListener
A network connector which uses a discovery agent to detect the remote brokers
available and setup a connection to each available remote broker
| Methods inherited from class org.apache.activemq.network.NetworkConnector |
activeBridges, addDynamicallyIncludedDestination, addExcludedDestination, addStaticallyIncludedDestination, configureBridge, createLocalTransport, createNetworkBridgeObjectName, getBrokerService, getConnectionFilter, getDurableDestinations, getLocalUri, getObjectName, isStarted, isStopped, isStopping, registerNetworkBridgeMBean, removeDemandSubscription, setBrokerService, setConnectionFilter, setDurableDestinations, setLocalUri, setObjectName, start, stop, unregisterNetworkBridgeMBean |
| Methods inherited from class org.apache.activemq.network.NetworkBridgeConfiguration |
getBrokerName, getBrokerURL, getConsumerPriorityBase, getConsumerTTL, getDestinationFilter, getDynamicallyIncludedDestinations, getExcludedDestinations, getMessageTTL, getName, getNetworkTTL, getPassword, getPrefetchSize, getStaticallyIncludedDestinations, getUserName, isAdvisoryForFailedForward, isAlwaysSyncSend, isBridgeTempDestinations, isConduitSubscriptions, isDecreaseNetworkConsumerPriority, isDispatchAsync, isDuplex, isDynamicOnly, isStaticBridge, isSuppressDuplicateQueueSubscriptions, isSuppressDuplicateTopicSubscriptions, isUseBrokerNamesAsIdSeed, isUseCompression, setAdvisoryForFailedForward, setAlwaysSyncSend, setBridgeTempDestinations, setBrokerName, setBrokerURL, setConduitSubscriptions, setConsumerPriorityBase, setConsumerTTL, setDecreaseNetworkConsumerPriority, setDestinationFilter, setDispatchAsync, setDuplex, setDynamicallyIncludedDestinations, setDynamicOnly, setExcludedDestinations, setMessageTTL, setName, setNetworkTTL, setPassword, setPrefetchSize, setStaticallyIncludedDestinations, setStaticBridge, setSuppressDuplicateQueueSubscriptions, setSuppressDuplicateTopicSubscriptions, setUseBrokerNameAsIdSees, setUseCompression, setUserName |
DiscoveryNetworkConnector
public DiscoveryNetworkConnector()
DiscoveryNetworkConnector
public DiscoveryNetworkConnector(URI discoveryURI)
throws IOException
- Throws:
IOException
setUri
public void setUri(URI discoveryURI)
throws IOException
- Throws:
IOException
getUri
public URI getUri()
onServiceAdd
public void onServiceAdd(DiscoveryEvent event)
- Specified by:
onServiceAdd in interface DiscoveryListener
onServiceRemove
public void onServiceRemove(DiscoveryEvent event)
- Specified by:
onServiceRemove in interface DiscoveryListener
getDiscoveryAgent
public DiscoveryAgent getDiscoveryAgent()
setDiscoveryAgent
public void setDiscoveryAgent(DiscoveryAgent discoveryAgent)
handleStart
protected void handleStart()
throws Exception
- Overrides:
handleStart in class NetworkConnector
- Throws:
Exception
handleStop
protected void handleStop(ServiceStopper stopper)
throws Exception
- Overrides:
handleStop in class NetworkConnector
- Throws:
Exception
createBridge
protected NetworkBridge createBridge(Transport localTransport,
Transport remoteTransport,
DiscoveryEvent event)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.