A peer-to-peer distributed backup service for the Internet. Check the Docs
Group members:
- Hugo Guimarães up201806490@up.pt
- Paulo Ribeiro up201806505@up.pt
- Eduardo Ribeiro up201806271@up.pt
- Diana Freitas up201806230@up.pt
See the Makefile inside the src folder for more information
-
Clone this repository:
git clone https://git.fe.up.pt/sdis1/2021/t7/g24/proj2.git -
Go to the
srcdirectory:cd src -
Compile all the java classes:
make all -
Initialize the rmi registry:
make rmi -
Start creating the peers: There are default commands for creating up to 6 peers. You can create them like this, in order:
make peer1,make peer2, ...If you don't want to run the make instructions, run the direct commands like this:
java -Djavax.net.ssl.keyStore=server.keys \ -Djavax.net.ssl.keyStorePassword=sdisg24 \ -Djavax.net.ssl.trustStore=truststore \ -Djavax.net.ssl.trustStorePassword=sdisg24 \ g24.Peer peer2 0.0.0.0 9050 0.0.0.0 9050This command has two versions:
g24.Peer <peerAp> <ip> <port>for creating a new ringg24.Peer <peerAp> <ip> <port> <ip_successor> <port_successor>for joining an existing ring
-
Execute every protocol you want: There are default commands for the files inside the
testfolder, for example:make backup,make restore3,make delete2,make reclaim5,make state1, ... -
Clear all the output files:
make clean -
Clean the peers storage:
make delout