|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.transport.discovery.simple.SimpleDiscoveryAgent
public class SimpleDiscoveryAgent
A simple DiscoveryAgent that allows static configuration of the discovered services.
| Constructor Summary | |
|---|---|
SimpleDiscoveryAgent()
|
|
| Method Summary | |
|---|---|
long |
getBackOffMultiplier()
|
long |
getInitialReconnectDelay()
|
int |
getMaxReconnectAttempts()
|
long |
getMaxReconnectDelay()
|
long |
getMinConnectTime()
|
String[] |
getServices()
|
boolean |
isUseExponentialBackOff()
|
void |
registerService(String name)
register a service |
void |
serviceFailed(DiscoveryEvent devent)
A process actively using a service may see it go down before the DiscoveryAgent notices the service's failure. |
void |
setBackOffMultiplier(long backOffMultiplier)
|
void |
setDiscoveryListener(DiscoveryListener listener)
Sets the discovery listener |
void |
setInitialReconnectDelay(long initialReconnectDelay)
|
void |
setMaxReconnectAttempts(int maxReconnectAttempts)
|
void |
setMaxReconnectDelay(long maxReconnectDelay)
|
void |
setMinConnectTime(long minConnectTime)
|
void |
setServices(String services)
|
void |
setServices(String[] services)
|
void |
setServices(URI[] services)
|
void |
setUseExponentialBackOff(boolean useExponentialBackOff)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleDiscoveryAgent()
| Method Detail |
|---|
public void setDiscoveryListener(DiscoveryListener listener)
DiscoveryAgent
setDiscoveryListener in interface DiscoveryAgent
public void registerService(String name)
throws IOException
DiscoveryAgent
registerService in interface DiscoveryAgentIOException
public void start()
throws Exception
start in interface ServiceException
public void stop()
throws Exception
stop in interface ServiceExceptionpublic String[] getServices()
public void setServices(String services)
public void setServices(String[] services)
public void setServices(URI[] services)
public void serviceFailed(DiscoveryEvent devent)
throws IOException
DiscoveryAgent
serviceFailed in interface DiscoveryAgentIOExceptionpublic long getBackOffMultiplier()
public void setBackOffMultiplier(long backOffMultiplier)
public long getInitialReconnectDelay()
public void setInitialReconnectDelay(long initialReconnectDelay)
public int getMaxReconnectAttempts()
public void setMaxReconnectAttempts(int maxReconnectAttempts)
public long getMaxReconnectDelay()
public void setMaxReconnectDelay(long maxReconnectDelay)
public long getMinConnectTime()
public void setMinConnectTime(long minConnectTime)
public boolean isUseExponentialBackOff()
public void setUseExponentialBackOff(boolean useExponentialBackOff)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||