Class HTTPDiscoveryAgent
- java.lang.Object
- 
- org.apache.activemq.transport.discovery.http.HTTPDiscoveryAgent
 
- 
- All Implemented Interfaces:
- Service,- DiscoveryAgent,- Suspendable
 
 public class HTTPDiscoveryAgent extends Object implements DiscoveryAgent, Suspendable 
- 
- 
Constructor SummaryConstructors Constructor Description HTTPDiscoveryAgent()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGroup()StringgetRegistryURL()longgetUpdateInterval()booleanisStartEmbeddRegistry()voidregisterService(String service)register a servicevoidresume()voidserviceFailed(DiscoveryEvent devent)A process actively using a service may see it go down before the DiscoveryAgent notices the service's failure.voidsetBrokerName(String brokerName)voidsetDiscoveryListener(DiscoveryListener discoveryListener)Sets the discovery listenervoidsetGroup(String group)voidsetRegistryURL(String discoveryRegistryURL)voidsetStartEmbeddRegistry(boolean startEmbeddRegistry)voidsetUpdateInterval(long updateInterval)voidstart()voidstop()voidsuspend()
 
- 
- 
- 
Method Detail- 
getGrouppublic String getGroup() 
 - 
registerServicepublic void registerService(String service) throws IOException Description copied from interface:DiscoveryAgentregister a service- Specified by:
- registerServicein interface- DiscoveryAgent
- Throws:
- IOException
 
 - 
serviceFailedpublic void serviceFailed(DiscoveryEvent devent) throws IOException Description copied from interface:DiscoveryAgentA process actively using a service may see it go down before the DiscoveryAgent notices the service's failure. That process can use this method to notify the DiscoveryAgent of the failure so that other listeners of this DiscoveryAgent can also be made aware of the failure.- Specified by:
- serviceFailedin interface- DiscoveryAgent
- Throws:
- IOException
 
 - 
setBrokerNamepublic void setBrokerName(String brokerName) 
 - 
setDiscoveryListenerpublic void setDiscoveryListener(DiscoveryListener discoveryListener) Description copied from interface:DiscoveryAgentSets the discovery listener- Specified by:
- setDiscoveryListenerin interface- DiscoveryAgent
 
 - 
setGrouppublic void setGroup(String group) 
 - 
startpublic void start() throws Exception
 - 
getRegistryURLpublic String getRegistryURL() 
 - 
setRegistryURLpublic void setRegistryURL(String discoveryRegistryURL) 
 - 
getUpdateIntervalpublic long getUpdateInterval() 
 - 
setUpdateIntervalpublic void setUpdateInterval(long updateInterval) 
 - 
isStartEmbeddRegistrypublic boolean isStartEmbeddRegistry() 
 - 
setStartEmbeddRegistrypublic void setStartEmbeddRegistry(boolean startEmbeddRegistry) 
 - 
suspendpublic void suspend() throws Exception- Specified by:
- suspendin interface- Suspendable
- Throws:
- Exception
 
 - 
resumepublic void resume() throws Exception- Specified by:
- resumein interface- Suspendable
- Throws:
- Exception
 
 
- 
 
-