|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.networkdb.kademlia.SearchState
class SearchState
Data related to a particular search
Constructor Summary | |
---|---|
SearchState(RouterContext context,
Hash key)
|
Method Summary | |
---|---|
void |
addPending(java.util.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 |
java.util.Set |
getAttempted()
|
java.util.Set |
getClosestAttempted(int max)
|
java.util.Set |
getFailed()
|
java.util.Set |
getPending()
|
java.util.Set |
getRepliedPeers()
|
java.util.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)
|
java.lang.String |
toString()
|
boolean |
wasAttempted(Hash peer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SearchState(RouterContext context, Hash key)
Method Detail |
---|
public Hash getTarget()
public java.util.Set getPending()
public java.util.Set getAttempted()
public java.util.Set getClosestAttempted(int max)
public boolean wasAttempted(Hash peer)
public java.util.Set getSuccessful()
public java.util.Set getFailed()
public boolean completed()
public void complete(boolean completed)
public long getWhenStarted()
public long getWhenCompleted()
public void addPending(java.util.Collection pending)
public void addPending(Hash peer)
public void removePending(Hash peer)
public long dataFound(Hash peer)
public long replyFound(Hash peer)
public java.util.Set getRepliedPeers()
public void replyTimeout(Hash peer)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |