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:
FileServer:
Listens for incoming connections from clients.
Handles file operations create read, write, delete
Maintains a local file system.
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 eg 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 nonexistent 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:
File Server, FileSystem Client Functionality, data transfer and Error Handling: mathbf pts
Documentation: mathbf pts
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
