Class ChordFingerTable

java.lang.Object
org.drasyl.handler.dht.chord.ChordFingerTable

public class ChordFingerTable extends Object
Chord routing table.
  • Field Details

  • Constructor Details

    • ChordFingerTable

      public ChordFingerTable(DrasylAddress localAddress)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • get

      public DrasylAddress get(int i)
    • getSuccessor

      public DrasylAddress getSuccessor()
    • hasSuccessor

      public boolean hasSuccessor()
    • removePeer

      public void removePeer(DrasylAddress value)
    • updateIthFinger

      public boolean updateIthFinger(int i, DrasylAddress value)
      Updates the ith finger to point at value.
      Parameters:
      i - finger to update
      value - new value
      Returns:
      true if our successor (1st finger) was updated