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