All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ajanta.apps.afs.Client

java.lang.Object
   |
   +----java.rmi.server.RemoteObject
           |
           +----java.rmi.server.RemoteServer
                   |
                   +----java.rmi.server.UnicastRemoteObject
                           |
                           +----ajanta.server.AgentServer
                                   |
                                   +----ajanta.apps.afs.Client

public class Client
extends AgentServer
This class is used to lauch an agent. It will creat a FileSystremAgent object and send it to different servers according to an itinerary which is prepared by reading a file should be stored in the user's directore .ajanta/servers/afsClient/ The name of this file should be given as the first argument when the Client class is executed.


Variable Index

 o myurn
 o obj

Constructor Index

 o Client()

Method Index

 o GetUserURN()
 o main(String[])
This main method will create a Client object (which is an Agent Server) and execute the run method of this object.
 o readClientFile(String)
 o report(Agent)
 o run(String)

Variables

 o myurn
 private static String myurn
 o obj
 private static Client obj

Constructors

 o Client
 public Client() throws RemoteException

Methods

 o main
 public static void main(String args[])
This main method will create a Client object (which is an Agent Server) and execute the run method of this object. The run method whill create a listener thread for accepting any file transfers that are initiated by an agent launched by this Client object. The listner thread listens on TCP port 7000. The agent created by Client is given URN urn:ans:cs.umn.edu/FSAgent/0

 o run
 private void run(String TaskFile)
 o readClientFile
 private byte[] readClientFile(String f)
 o GetUserURN
 private URN GetUserURN()
 o report
 public void report(Agent ag)
Overrides:
report in class AgentServer

All Packages  Class Hierarchy  This Package  Previous  Next  Index