DrBrad / JChord

A Java implementation of the Chord protocol, using TCP sockets with no UDP or RMI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JChord

A Java implementation of the Chord protocol, using TCP sockets with no UDP or RMI.

I have added a new method in the code for the option to handle fingers in what may be a better method in my opinion. This method handles fingers by determining the opposite position from itself and then incremently goes closer and closer to itself. Think of a Pizza and you split the pizza in half and then you go to the right by 1/4 then to the right 1/8 etc... This runs by finding the closest to the successor rather than asking for successors 32 times.

This method DOES NOT tunnel through the network to preserve threads, however it would be very easy to implement a method with tunneling, assuming you don't run more than 6 nodes on a given computer.

Features

This implementation includes the following

  • Fingers
  • Storage
  • Safe Node Leaving - Handovers

About

A Java implementation of the Chord protocol, using TCP sockets with no UDP or RMI

License:MIT License


Languages

Language:Java 100.0%