The code attempts to implement Distributed File System:
Abhishek Negi, Manish Thakur
- Command.java (Interface for creating file in DFS).
- Get.java (Get file from DFS(Storage Server Hosting File) and store in Current Directory).
- NamingServer.java (NameServer for DFS).
- Put.java (Put a file in DFS).
- Registration.java (Interface for registering a StorageServer to NameServer).
- Services.java (Client Interface to create,get storageserver of a file and list files in DFS).
- list.java (Show files in DFS).
To Start NameServer :
java NamimgServer [IP-NameServer] [Port-NameServer(to use for RMI communication)]
To Start StorageServer on any PC in the network :
java StorageServer [Own-Ip] [PORT(for tcp)] [Port(for RMI)] [IP NameServer] [RMI port In NameServer]
To Get , Put and List file in DFS:
java Get [File-Name] [IP-NameServer] [RMI port In NameServer]
java Put [File-Name] [IP-NameServer] [RMI port In NameServer] [Port(for TCP)] [Own-IP]
java list [File-Name] [IP-NameServer] [RMI port In NameServer]