Skip to content

literallysofia/feup-sdis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 

Repository files navigation

feup-sdis

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.

First Project

Compile and start RMI

sh compile.sh
rmiregistry

Run

Peer

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

Backup Protocol

App <host>/<peer_access_point> BACKUP <file_path> <desired_replication_degree>

E.g.: App localhost/Peer1 BACKUP C:\Users\johndoe\Documents\sdis.pdf 2

Restore Protocol

App <host>/<peer_access_point> RESTORE <file_path>

E.g.: App localhost/Peer1 RESTORE C:\Users\johndoe\Documents\sdis.pdf

Delete Protocol

App <host>/<peer_access_point> DELETE <file_path>

E.g.: App localhost/Peer1 DELETE C:\Users\johndoe\Documents\sdis.pdf

Reclaim Protocol

App <host>/<peer_access_point> BACKUP <max_amount_disk_space>

E.g.: App localhost/Peer1 RECLAIM 65000

State

App <host>/<peer_access_point> STATE

E.g.: App localhost/Peer1 STATE

Second Project

Compile and start RMI

sh compile.sh
rmiregistry

Run

Peer

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

Backup Protocol

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

Restore Protocol

RMI.Application //<host>/<peer_access_point> RESTORE <file_path>

Eg.: Application //localhost/1 RESTORE /usr/users2/2015/Desktop/file.txt

Delete Protocol

RMI.Application //<host>/<peer_access_point> DELETE <file_path>

Eg.: RMI.Application //localhost/1 DELETE /usr/users2/2015/Desktop/file.txt

Reclaim Protocol

RMI.Application //<host>/<peer_access_point> RECLAIM <max_disk_space>

Eg.: RMI.Application //localhost/1 RECLAIM 30000

State

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

Releases

No releases published

Packages

No packages published