public class IterativeSearchJob extends FloodSearchJob
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ENCRYPT_RI
only on fast boxes, for now
|
static String |
PROP_ENCRYPT_RI |
_created, _dead, _expiration, _facade, _isLease, _key, _log, _lookupsRemaining, _onFailed, _onFind, _success, _timeoutMs, CONCURRENT_SEARCHES| Constructor and Description |
|---|
IterativeSearchJob(RouterContext ctx,
FloodfillNetworkDatabaseFacade facade,
net.i2p.data.Hash key,
Job onFind,
Job onFailed,
int timeoutMs,
boolean isLease)
Lookup using exploratory tunnels
|
IterativeSearchJob(RouterContext ctx,
FloodfillNetworkDatabaseFacade facade,
net.i2p.data.Hash key,
Job onFind,
Job onFailed,
int timeoutMs,
boolean isLease,
net.i2p.data.Hash fromLocalDest)
Lookup using the client's tunnels.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dropped()
Dropped by the job queue
|
(package private) void |
failed()
Total failure
|
(package private) void |
failed(net.i2p.data.Hash peer,
boolean timedOut)
Note that the peer did not respond with a DSM
(either a DSRM, timeout, or failure).
|
net.i2p.data.Hash |
getFromHash()
Hash of the dest this query is from
|
String |
getName()
Deprecated, unused, see FOSJ override
|
(package private) void |
newPeerToTry(net.i2p.data.Hash peer)
A new (floodfill) peer was discovered that may have the answer.
|
void |
runJob()
Deprecated, unused, see FOSJ override
|
(package private) void |
success()
Deprecated, unused, see FOSJ override
|
(package private) long |
timeSent(net.i2p.data.Hash peer)
When did we send the query to the peer?
|
boolean |
wasQueried(net.i2p.data.Hash peer)
Did we send a request to this peer?
|
addDeferred, decrementRemaining, getCreated, getExpiration, getKey, getLookupsRemaininggetAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toStringpublic static final String PROP_ENCRYPT_RI
public static final boolean DEFAULT_ENCRYPT_RI
public IterativeSearchJob(RouterContext ctx, FloodfillNetworkDatabaseFacade facade, net.i2p.data.Hash key, Job onFind, Job onFailed, int timeoutMs, boolean isLease)
public IterativeSearchJob(RouterContext ctx, FloodfillNetworkDatabaseFacade facade, net.i2p.data.Hash key, Job onFind, Job onFailed, int timeoutMs, boolean isLease, net.i2p.data.Hash fromLocalDest)
fromLocalDest - use these tunnels for the lookup, or null for exploratorypublic void runJob()
FloodSearchJobrunJob in interface JobrunJob in class FloodSearchJobpublic String getName()
FloodSearchJobgetName in interface JobgetName in class FloodSearchJobvoid failed(net.i2p.data.Hash peer,
boolean timedOut)
timedOut - if true, will blame the peer's profilevoid newPeerToTry(net.i2p.data.Hash peer)
peer - may not actually be newpublic net.i2p.data.Hash getFromHash()
public boolean wasQueried(net.i2p.data.Hash peer)
long timeSent(net.i2p.data.Hash peer)
public void dropped()
void failed()
failed in class FloodSearchJobvoid success()
FloodSearchJobsuccess in class FloodSearchJob