Class MasterSlaveDiscoveryAgent
- java.lang.Object
-
- org.apache.activemq.transport.discovery.simple.SimpleDiscoveryAgent
-
- org.apache.activemq.transport.discovery.masterslave.MasterSlaveDiscoveryAgent
-
- All Implemented Interfaces:
Service
,DiscoveryAgent
public class MasterSlaveDiscoveryAgent extends SimpleDiscoveryAgent
A static DiscoveryAgent that supports connecting to a Master / Slave tuple of brokers.
-
-
Constructor Summary
Constructors Constructor Description MasterSlaveDiscoveryAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureServices()
String[]
getServices()
void
setServices(String services)
void
setServices(String[] services)
void
setServices(URI[] services)
-
Methods inherited from class org.apache.activemq.transport.discovery.simple.SimpleDiscoveryAgent
doReconnectDelay, getBackOffMultiplier, getInitialReconnectDelay, getMaxReconnectAttempts, getMaxReconnectDelay, getMinConnectTime, isUseExponentialBackOff, registerService, serviceFailed, setBackOffMultiplier, setDiscoveryListener, setInitialReconnectDelay, setMaxReconnectAttempts, setMaxReconnectDelay, setMinConnectTime, setUseExponentialBackOff, start, stop
-
-
-
-
Method Detail
-
getServices
public String[] getServices()
- Overrides:
getServices
in classSimpleDiscoveryAgent
-
setServices
public void setServices(String services)
- Overrides:
setServices
in classSimpleDiscoveryAgent
-
setServices
public void setServices(String[] services)
- Overrides:
setServices
in classSimpleDiscoveryAgent
-
setServices
public void setServices(URI[] services)
- Overrides:
setServices
in classSimpleDiscoveryAgent
-
configureServices
protected void configureServices()
-
-