public class DHTFingerTable
extends java.lang.Object
| Constructor and Description |
|---|
DHTFingerTable(java.math.BigInteger inHashID,
int inNumBits) |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
getHashID() |
DHTConnection |
getNextHop(java.math.BigInteger inHashID) |
int |
getNumBits() |
DHTConnection |
getPeer(int index) |
DHTConnection |
getPredPeer() |
java.util.List<DHTConnection> |
getSuccPeers() |
boolean |
isOwner(java.math.BigInteger inHashID)
Checks to see if the key is stored on this node.
|
void |
setPeer(int index,
SynapseDHTDetails inPeer) |
void |
setPredPeer(SynapseDHTDetails inPred)
Change this peer's predecessor.
|
void |
setSuccPeers(java.util.List<SynapseDHTDetails> inSuccList)
Update this peer's successors.
|
public DHTFingerTable(java.math.BigInteger inHashID,
int inNumBits)
public int getNumBits()
public java.math.BigInteger getHashID()
public DHTConnection getPeer(int index)
public void setPeer(int index,
SynapseDHTDetails inPeer)
throws DHTPeerException
DHTPeerExceptionpublic DHTConnection getPredPeer()
public void setPredPeer(SynapseDHTDetails inPred) throws DHTPeerException
LinkExceptionDHTPeerExceptionpublic java.util.List<DHTConnection> getSuccPeers()
public void setSuccPeers(java.util.List<SynapseDHTDetails> inSuccList) throws DHTPeerException
inSuccList - - A list of this peer's successors.LinkExceptionDHTPeerExceptionpublic boolean isOwner(java.math.BigInteger inHashID)
public DHTConnection getNextHop(java.math.BigInteger inHashID)