Project for the Distributed Systems (SDIS) class of the Master in Informatics and Computer Engineering (MIEIC) at the Faculty of Engineering of the University of Porto (FEUP).
Made by
- javac -d out com/assigment_2/*.java
-
java com.assigment_2.PeerClient <version> <rmi_peer_ap> <address> <port>
Ex: java com.assigment_2.PeerClient 2.0 1 "localhost" 9222
-
java com.assigment_2.PeerClient <version> <rmi_peer_ap> <address> <port> <address_initiator> <port_initiator>
Ex: java com.assigment_2.PeerClient 2.0 2 "localhost" 9223 "localhost" 9222
-
java com.assigment_2.TestApp <rmi_peer_ap> <sub_protocol> <arguments_of_protocol>
2.1. <rmi_peer_ap> BACKUP <file_path> <replication_degree>
2.2. <rmi_peer_ap> DELETE <file_path>
2.3. <rmi_peer_ap> RESTORE <file_path>
2.4. <rmi_peer_ap> RECLAIM <disk_space>
Ex: java com.assigment_2.TestApp 1 BACKUP "/home/claudia/Desktop/imagem.jpg" 2