Git Product home page Git Product logo

feup-sdis-proj2's Introduction

Readme - SDIS Project 2 - G27

Name UP Code
Gonçalo Teixeira 201806562
André Gomes 201806224
Isla Cassamo 201808549

Requirements

  • min. JDK 11

  • Linux Based System (to run the shell scripts)

Compile under src/

> sh ../scripts/compile.sh

it will save the compiled classes, keystores and log4j2.xml (used on logger) to src/build/

Execute Peer under src/build/

> sh ../../scripts/peer.sh <SAP> <BOOT_IP> <BOOT_PORT> [-b]
  • SAP

    Service Access Point (used for RMI)

  • BOOT_IP/BOOT_PORT

    Used to Join the Chord Network

  • Flag -b

    used to signal if the peer is Boot. This flag will mean the peer will take the boot peer IP/port passed as argument as its own, making it the boot peer, this flag is used for convenience, as we would have to start a peer and check it’s IP/Port, and then start the other peers with it as reference for the Chord Network.

Execute TestApp/Client under src/build/

> sh ../../scripts/test.sh <operation> [<operand_1> [<operand_2]]
  • operation

    BACKUP | RESTORE | DELETE | RECLAIM | STATE | CHORD | LOOKUP as described on table 2.1 (report), these operations have arguments associated.

Multiple Peers Execution

To start eight peers, with a 1 second delay between, run the following line with JDK11 under src/build/:

> sh ../../scripts/peers.sh

Documentation

The Javadocs for this project can be found here.


feup-sdis-proj2's People

Stargazers

 avatar  avatar  avatar

Watchers

 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.