Package org.drasyl.handler.dht.chord
Interface RemoteChordNode
- All Known Implementing Classes:
LocalChordNode
public interface RemoteChordNode
Remote interface of a Chord node.
-
Method Summary
Modifier and TypeMethodDescriptionio.netty.util.concurrent.Future<Void>NOOP/ping method used to check if callee is still alive.io.netty.util.concurrent.Future<DrasylAddress>findClosestFingerPreceding(long id) Find the closest finger preceding.io.netty.util.concurrent.Future<DrasylAddress>findSuccessor(long id) Find successor forid.io.netty.util.concurrent.Future<DrasylAddress>Returns the predecessor.io.netty.util.concurrent.Future<DrasylAddress>Returns the successor.io.netty.util.concurrent.Future<Boolean>isStable()Check if node is stable (has successor and predecessor or neither).io.netty.util.concurrent.Future<Void>Offers callee to set caller as new predecessor.
-
Method Details
-
checkAlive
io.netty.util.concurrent.Future<Void> checkAlive()NOOP/ping method used to check if callee is still alive. -
getPredecessor
io.netty.util.concurrent.Future<DrasylAddress> getPredecessor()Returns the predecessor. -
getSuccessor
io.netty.util.concurrent.Future<DrasylAddress> getSuccessor()Returns the successor. -
offerAsPredecessor
io.netty.util.concurrent.Future<Void> offerAsPredecessor()Offers callee to set caller as new predecessor. -
findClosestFingerPreceding
Find the closest finger preceding.n.closest_preceding_finger(id) -
findSuccessor
Find successor forid.n.find_successor(id) -
isStable
io.netty.util.concurrent.Future<Boolean> isStable()Check if node is stable (has successor and predecessor or neither).
-