|
||||||||||
| 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()
|
java.lang.String[] |
getServices()
|
boolean |
isUseExponentialBackOff()
|
void |
registerService(java.lang.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(java.lang.String services)
|
void |
setServices(java.lang.String[] services)
|
void |
setServices(java.net.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(java.lang.String name)
throws java.io.IOException
DiscoveryAgent
registerService in interface DiscoveryAgentjava.io.IOException
public void start()
throws java.lang.Exception
start in interface Servicejava.lang.Exception
public void stop()
throws java.lang.Exception
stop in interface Servicejava.lang.Exceptionpublic java.lang.String[] getServices()
public void setServices(java.lang.String services)
public void setServices(java.lang.String[] services)
public void setServices(java.net.URI[] services)
public void serviceFailed(DiscoveryEvent devent)
throws java.io.IOException
DiscoveryAgent
serviceFailed in interface DiscoveryAgentjava.io.IOExceptionpublic 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 | |||||||||