Question: Simplified Distributed File System Objective: Design and implement a simplified distributed file system in Java using TCP sockets. This system will allow clients to store,

Simplified Distributed File System
Objective:
Design and implement a simplified distributed file system in Java using TCP sockets. This system will allow clients to store, retrieve, and manage files across multiple servers.
Components:
1. FileServer:
- Listens for incoming connections from clients.
- Handles file operations (create, read, write, delete).
- Maintains a local file system.
2. FileSystemClient:|
- Connects to a file server.
- Sends file operations requests to the server.
- Receives file data or error messages from the server.
Data Structures:
- Use a simple list or array to store information about available file servers.
Protocol:
- Design a custom protocol for communication between clients and servers.
- Include commands for file operations (create, read, write, delete).
Additional Features:
- Support different file types (e.g., text, images, binary).
Deliverables:
- Java code for the FileServer and FileSystemClient classes.
- Documentation explaining the system architecture, protocol, and data structures.
- Test cases to evaluate the system's functionality and performance.
Test cases:
FileServer:
- Test file creation with valid and invalid filenames.
- Test file reading for existing files of different sizes and types.
- Test file writing with different content.
- Test file deletion for existing and non-existent files.
- Test error handling for network failures, file system errors, and invalid commands.
FileSystemClient:
- Test connection to the file server.
- Test sending and receiving valid file operations requests.
- Test error handling for invalid commands or server errors.
Rubric:
1. File Server, File-System Client Functionality, data transfer and Error Handling: \(\mathbf{10}\) pts
2. Documentation: \(\mathbf{5}\) pts
Simplified Distributed File System Objective:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!