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.
-
myurn
-
-
obj
-
-
Client()
-
-
GetUserURN()
-
-
main(String[])
- This main method will create a Client object (which is an Agent Server)
and execute the run method of this object.
-
readClientFile(String)
-
-
report(Agent)
-
-
run(String)
-
myurn
private static String myurn
obj
private static Client obj
Client
public Client() throws RemoteException
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
run
private void run(String TaskFile)
readClientFile
private byte[] readClientFile(String f)
GetUserURN
private URN GetUserURN()
report
public void report(Agent ag)
- Overrides:
- report in class AgentServer
All Packages Class Hierarchy This Package Previous Next Index