A peer-to-peer distributed backup service for the Internet. Check the Docs
Group members:
- Hugo Guimarães [email protected]
- Paulo Ribeiro [email protected]
- Eduardo Ribeiro [email protected]
- Diana Freitas [email protected]
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
src
directory: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 9050
This 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
test
folder, 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