projectinfosearch
Class AgentClient

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

public class AgentClient
extends java.lang.Object

An AgentClient is an application which finds servers, creates and sends an AgentObject and displays its results when it returns


Constructor Summary
AgentClient(int homePort)
          creates a DiscoveryClient, displays the running servers which were found, creates an AgentSender, displays the results of the AgentObject's "journey"
 
Method Summary
static void main(java.lang.String[] args)
          Reads the arguments from the command line (homePort) and creates an AgentClient
 void printDiscoveryResult(java.util.Vector vector)
          prints the connected running servers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentClient

public AgentClient(int homePort)
creates a DiscoveryClient, displays the running servers which were found, creates an AgentSender, displays the results of the AgentObject's "journey"
Parameters:
homePort - is the home port on which the AgentClient waits for the AgentObject's return
Method Detail

printDiscoveryResult

public void printDiscoveryResult(java.util.Vector vector)
prints the connected running servers
Parameters:
-vector - contains the connected running servers

main

public static void main(java.lang.String[] args)
Reads the arguments from the command line (homePort) and creates an AgentClient