Project

General

Profile

Wiki » History » Version 3

João Álvaro Cardoso Soares Ferreira, 30/04/2019 12:36

1 1 João Álvaro Cardoso Soares Ferreira
FEUP-SDIS
2 1 João Álvaro Cardoso Soares Ferreira
Code developed in the SDIS class, in the MIEIC course, in FEUP
3 1 João Álvaro Cardoso Soares Ferreira
4 1 João Álvaro Cardoso Soares Ferreira
STEPS TO RUN:
5 1 João Álvaro Cardoso Soares Ferreira
6 1 João Álvaro Cardoso Soares Ferreira
1. Run makefile
7 1 João Álvaro Cardoso Soares Ferreira
2. Start rmiregistry in /bin/ folder (start rmiregistry for Windows, rmiregistry for Linux)
8 3 João Álvaro Cardoso Soares Ferreira
3. Start Peers with java Peer 1.0 <peer_ap> 224.0.0.0 4445 224.0.0.1 4446 224.0.0.2 4447 (example ports/ips, change at will)
9 1 João Álvaro Cardoso Soares Ferreira
4. Start TestApp with java TestApp <peer_ap> <sub_protocol> <opnd_1> <opnd_2>  
10 1 João Álvaro Cardoso Soares Ferreira
11 2 João Álvaro Cardoso Soares Ferreira
sub_protocol = BACKUP | RESTORE | RECLAIM | DELETE | STATE
12 1 João Álvaro Cardoso Soares Ferreira
opnd_1 = file_path for Backup, Restore and Delete, space for Reclaim
13 1 João Álvaro Cardoso Soares Ferreira
opnd_2 = rep_degree for Backup only