Skip to content

Peer-to-peer distributed backup service for the Internet using Chord and SSLEngine

License

Notifications You must be signed in to change notification settings

Ca-moes/SDIS_Proj2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.


About

Peer-to-peer distributed backup service for the Internet using Chord and SSLEngine

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published