Git Product home page Git Product logo

feup-sdis's Introduction

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

feup-sdis's People

Contributors

literallysofia avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.