OSMQ
v2.0.1

osmq.net
Class DiscoveryClient

java.lang.Object
  extended byosmq.mcns.MCRequestor
      extended byosmq.net.DiscoveryClient

public class DiscoveryClient
extends MCRequestor

Sends a "where is" request to a multicast group/port, and waits for a service to respond with its host/port. Uses a singleton to access, so there are not multiple multicast instances for a single application.


Method Summary
static DiscoveryClient getSingleton()
           
 boolean isActiveService(java.lang.String servicename)
           
 RemoteService locate(RemoteService es)
          Locate service name embedded in es, and set the port and address of es.
 RemoteService locate(java.lang.String servicename)
          locate service name embedded in es, and set the port and address of es.
 
Methods inherited from class osmq.mcns.MCRequestor
getChannel, isExceptionOnNoResponse, sendRequest, setChannel, setExceptionOnNoResponse
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSingleton

public static DiscoveryClient getSingleton()

isActiveService

public boolean isActiveService(java.lang.String servicename)

locate

public RemoteService locate(java.lang.String servicename)
                     throws java.io.IOException
locate service name embedded in es, and set the port and address of es.

Throws:
java.io.IOException

locate

public RemoteService locate(RemoteService es)
                     throws java.io.IOException
Locate service name embedded in es, and set the port and address of es.

Throws:
java.io.IOException

(c) 2000 - 2003 MQue Systems
All Rights Reserved