Class DirectLookupJob
java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.networkdb.kademlia.FloodSearchJob
net.i2p.router.networkdb.kademlia.FloodOnlySearchJob
net.i2p.router.networkdb.kademlia.DirectLookupJob
- All Implemented Interfaces:
Job
Ask a connected peer for his RI.
Modified from SingleSearchJob.
Mainly for older routers. As of 0.9.55, transports will
periodically send their RI.
Some old routers may not respond or may send DSRM,
e.g. if hidden (and i2pd?)
- Since:
- 0.9.56
-
Field Summary
Fields inherited from class net.i2p.router.networkdb.kademlia.FloodOnlySearchJob
_onReply, _onTimeout, _replySelectorFields inherited from class net.i2p.router.networkdb.kademlia.FloodSearchJob
_created, _dead, _expiration, _facade, _isLease, _key, _log, _lookupsRemaining, _onFailed, _onFind, _success, _timeoutMs, CONCURRENT_SEARCHES -
Constructor Summary
ConstructorsConstructorDescriptionDirectLookupJob(RouterContext ctx, FloodfillNetworkDatabaseFacade facade, Hash peer, RouterInfo oldRI, Job onFind, Job onFail) -
Method Summary
Methods inherited from class net.i2p.router.networkdb.kademlia.FloodOnlySearchJob
decrementRemainingMethods inherited from class net.i2p.router.networkdb.kademlia.FloodSearchJob
addDeferred, decrementRemaining, getCreated, getExpiration, getKey, getLookupsRemainingMethods inherited from class net.i2p.router.JobImpl
dropped, getAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, madeReady, requeue, toString
-
Constructor Details
-
DirectLookupJob
public DirectLookupJob(RouterContext ctx, FloodfillNetworkDatabaseFacade facade, Hash peer, RouterInfo oldRI, Job onFind, Job onFail) - Parameters:
peer- for Router Info only
-
-
Method Details
-
getName
Description copied from class:FloodSearchJobDeprecated, unused, see FOSJ override- Specified by:
getNamein interfaceJob- Overrides:
getNamein classFloodOnlySearchJob
-
shouldProcessDSRM
public boolean shouldProcessDSRM()- Overrides:
shouldProcessDSRMin classFloodOnlySearchJob
-
runJob
public void runJob()Description copied from class:FloodSearchJobDeprecated, unused, see FOSJ override- Specified by:
runJobin interfaceJob- Overrides:
runJobin classFloodOnlySearchJob
-
failed
void failed()Description copied from class:FloodSearchJobDeprecated, unused, see FOSJ override- Overrides:
failedin classFloodOnlySearchJob
-
success
void success()Description copied from class:FloodSearchJobDeprecated, unused, see FOSJ override- Overrides:
successin classFloodOnlySearchJob
-