Projects 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 in colaboration with Carlos Freitas, Julieta Frade and Luís Martins.
Completed in 28/05/2018.
sh compile.sh
rmiregistry
Peer <version> <server id> <access_point> <MC_IP_address> <MC_port> <MDB_IP_address> <MDB_port> <MDR_IP_address> <MDR_port>
E.g.: Peer 2.0 1 Peer1 224.0.0.15 8001 224.0.0.16 8002 224.0.0.17 8003
App <host>/<peer_access_point> BACKUP <file_path> <desired_replication_degree>
E.g.: App localhost/Peer1 BACKUP C:\Users\johndoe\Documents\sdis.pdf 2
App <host>/<peer_access_point> RESTORE <file_path>
E.g.: App localhost/Peer1 RESTORE C:\Users\johndoe\Documents\sdis.pdf
App <host>/<peer_access_point> DELETE <file_path>
E.g.: App localhost/Peer1 DELETE C:\Users\johndoe\Documents\sdis.pdf
App <host>/<peer_access_point> BACKUP <max_amount_disk_space>
E.g.: App localhost/Peer1 RECLAIM 65000
App <host>/<peer_access_point> STATE
E.g.: App localhost/Peer1 STATE
sh compile.sh
rmiregistry
Peer.Peer <version> <server id> <access_point> <MC_port> <MC_IP_address> <MDB_port> <MDB_IP_address> <MDR_port> <MDR_IP_address>
Eg.: Peer.Peer 1.0 1 1 8000 224.0.0.1 8001 224.0.0.2 8002 224.0.0.3
RMI.Application //<host>/<peer_access_point> BACKUP <file_path> <desired_replication_degree>
Eg.: RMI.Application //localhost/1 BACKUP /usr/users2/2015/Desktop/file.txt 3
RMI.Application //<host>/<peer_access_point> RESTORE <file_path>
Eg.: Application //localhost/1 RESTORE /usr/users2/2015/Desktop/file.txt
RMI.Application //<host>/<peer_access_point> DELETE <file_path>
Eg.: RMI.Application //localhost/1 DELETE /usr/users2/2015/Desktop/file.txt
RMI.Application //<host>/<peer_access_point> RECLAIM <max_disk_space>
Eg.: RMI.Application //localhost/1 RECLAIM 30000
RMI.Application //<host>/<peer_access_point> STATE
Eg.: RMI.Application //localhost/1 STATE
Notice: The Backup, Restore, Delete protocols can be called with ENH so that the enhanced version can be used.
Eg.: RMI.Application localhost/1 ENHBACKUP /usr/users2/2015/Desktop/file.txt 3