public interface IRingNodeService extends IRingApplicationService
IRingApplicationService.State
TIMEOUT
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.IFuture<IFinger> |
getClosestPrecedingFinger(IID id)
Return the finger that preceeds the given ID and is closest to it in the
local finger table.
|
jadex.commons.future.IFuture<java.util.List<IFinger>> |
getFingers()
Returns a List of all fingers.
|
java.lang.String |
getOverlayId()
Returns the overlay id this node operates in.
|
jadex.commons.future.IFuture<IFinger> |
getPredecessor()
Return the predecessor of this node.
|
jadex.commons.future.IFuture<java.lang.Void> |
notify(IFinger ringNode)
Notifies this node about a possible new predecessor.
|
jadex.commons.future.IFuture<java.lang.Void> |
notifyBad(IFinger x)
Notifies this node about a possible new predecessor.
|
jadex.commons.future.IFuture<java.lang.Void> |
setPredecessor(IFinger predecessor)
Set the predecessor of this node.
|
findSuccessor, getId, getState, getSuccessor, isInitialized, setInitialized, subscribeForEvents
jadex.commons.future.IFuture<IFinger> getClosestPrecedingFinger(IID id)
key
- the IDIFinger
The finger that is closest preceeding the given
key.jadex.commons.future.IFuture<IFinger> getPredecessor()
getPredecessor
in interface IRingApplicationService
jadex.commons.future.IFuture<java.lang.Void> setPredecessor(IFinger predecessor)
predecessor
- Finger entry of the new predecessor.jadex.commons.future.IFuture<java.lang.Void> notify(IFinger ringNode)
nDash
- possible new predecessorjadex.commons.future.IFuture<java.lang.Void> notifyBad(IFinger x)
nDash
- possible new predecessorjadex.commons.future.IFuture<java.util.List<IFinger>> getFingers()
java.lang.String getOverlayId()