projectinfosearch
Class DiscoveryClient

java.lang.Object
  |
  +--projectinfosearch.DiscoveryClient

public class DiscoveryClient
extends java.lang.Object

A discovery client is able to find AgentServers


Constructor Summary
DiscoveryClient(java.net.InetAddress mcastAddr, int basePort)
          Open a MulticastSocket for sending and receiving discovery requests and invoques the discover method
 
Method Summary
 java.util.Vector getDiscoveryResult()
          Returns the Vector that contains (IP address, port)-pairs (but only from distinct servers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoveryClient

public DiscoveryClient(java.net.InetAddress mcastAddr,
                       int basePort)
                throws java.io.IOException,
                       java.net.UnknownHostException
Open a MulticastSocket for sending and receiving discovery requests and invoques the discover method
Parameters:
mcastAddr - is the multicast address on which servers must be found
basePort - is the port on which the multicast socket lives.
Method Detail

getDiscoveryResult

public java.util.Vector getDiscoveryResult()
Returns the Vector that contains (IP address, port)-pairs (but only from distinct servers