net.i2p.router.networkdb.kademlia
class SearchState extends Object
Constructor and Description |
---|
SearchState(RouterContext context,
Hash key) |
Modifier and Type | Method and Description |
---|---|
void |
addPending(Collection pending) |
void |
addPending(Hash peer) |
void |
complete(boolean completed) |
boolean |
completed() |
long |
dataFound(Hash peer)
how long did it take to get the reply, or -1 if we don't know
|
Set |
getAttempted() |
Set |
getClosestAttempted(int max) |
Set |
getFailed() |
Set |
getPending() |
Set |
getRepliedPeers() |
Set |
getSuccessful() |
Hash |
getTarget() |
long |
getWhenCompleted() |
long |
getWhenStarted() |
void |
removePending(Hash peer)
we didn't actually want to add this peer as part of the pending list...
|
long |
replyFound(Hash peer)
how long did it take to get the reply, or -1 if we dont know
|
void |
replyTimeout(Hash peer) |
String |
toString() |
boolean |
wasAttempted(Hash peer) |
public SearchState(RouterContext context, Hash key)
public Hash getTarget()
public Set getPending()
public Set getAttempted()
public Set getClosestAttempted(int max)
public boolean wasAttempted(Hash peer)
public Set getSuccessful()
public Set getFailed()
public boolean completed()
public void complete(boolean completed)
public long getWhenStarted()
public long getWhenCompleted()
public void addPending(Collection pending)
public void addPending(Hash peer)
public void removePending(Hash peer)
public long dataFound(Hash peer)
public long replyFound(Hash peer)
public Set getRepliedPeers()
public void replyTimeout(Hash peer)