Save This Page
Home » activemq-parent-5.3.1-source-release » org.apache » activemq » transport » discovery » [javadoc | source]
org.apache.activemq.transport.discovery
public interface: DiscoveryAgent [javadoc | source]

All Implemented Interfaces:
    Service

All Known Implementing Classes:
    RendezvousDiscoveryAgent, SimpleDiscoveryAgent, MulticastDiscoveryAgent, HTTPDiscoveryAgent

An agent used to discover other instances of a service. We typically use a discovery agent to auto-discover JMS clients and JMS brokers on a network
Method from org.apache.activemq.transport.discovery.DiscoveryAgent Summary:
registerService,   serviceFailed,   setDiscoveryListener
Method from org.apache.activemq.transport.discovery.DiscoveryAgent Detail:
 public  void registerService(String name) throws IOException
    register a service
 public  void serviceFailed(DiscoveryEvent event) throws IOException
    A 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.
 public  void setDiscoveryListener(DiscoveryListener listener)
    Sets the discovery listener