Class HTTPDiscoveryAgent
- java.lang.Object
-
- org.apache.activemq.transport.discovery.http.HTTPDiscoveryAgent
-
- All Implemented Interfaces:
org.apache.activemq.Service,org.apache.activemq.transport.discovery.DiscoveryAgent,Suspendable
public class HTTPDiscoveryAgent extends Object implements org.apache.activemq.transport.discovery.DiscoveryAgent, Suspendable
-
-
Constructor Summary
Constructors Constructor Description HTTPDiscoveryAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGroup()StringgetRegistryURL()longgetUpdateInterval()booleanisStartEmbeddRegistry()voidregisterService(String service)voidresume()voidserviceFailed(org.apache.activemq.command.DiscoveryEvent devent)voidsetBrokerName(String brokerName)voidsetDiscoveryListener(org.apache.activemq.transport.discovery.DiscoveryListener discoveryListener)voidsetGroup(String group)voidsetRegistryURL(String discoveryRegistryURL)voidsetStartEmbeddRegistry(boolean startEmbeddRegistry)voidsetUpdateInterval(long updateInterval)voidstart()voidstop()voidsuspend()
-
-
-
Method Detail
-
getGroup
public String getGroup()
-
registerService
public void registerService(String service) throws IOException
- Specified by:
registerServicein interfaceorg.apache.activemq.transport.discovery.DiscoveryAgent- Throws:
IOException
-
serviceFailed
public void serviceFailed(org.apache.activemq.command.DiscoveryEvent devent) throws IOException- Specified by:
serviceFailedin interfaceorg.apache.activemq.transport.discovery.DiscoveryAgent- Throws:
IOException
-
setBrokerName
public void setBrokerName(String brokerName)
-
setDiscoveryListener
public void setDiscoveryListener(org.apache.activemq.transport.discovery.DiscoveryListener discoveryListener)
- Specified by:
setDiscoveryListenerin interfaceorg.apache.activemq.transport.discovery.DiscoveryAgent
-
setGroup
public void setGroup(String group)
-
start
public void start() throws Exception- Specified by:
startin interfaceorg.apache.activemq.Service- Throws:
Exception
-
stop
public void stop() throws Exception- Specified by:
stopin interfaceorg.apache.activemq.Service- Throws:
Exception
-
getRegistryURL
public String getRegistryURL()
-
setRegistryURL
public void setRegistryURL(String discoveryRegistryURL)
-
getUpdateInterval
public long getUpdateInterval()
-
setUpdateInterval
public void setUpdateInterval(long updateInterval)
-
isStartEmbeddRegistry
public boolean isStartEmbeddRegistry()
-
setStartEmbeddRegistry
public void setStartEmbeddRegistry(boolean startEmbeddRegistry)
-
suspend
public void suspend() throws Exception- Specified by:
suspendin interfaceSuspendable- Throws:
Exception
-
resume
public void resume() throws Exception- Specified by:
resumein interfaceSuspendable- Throws:
Exception
-
-