Class SingleSearchJob
- java.lang.Object
-
- net.i2p.router.JobImpl
-
- net.i2p.router.networkdb.kademlia.FloodSearchJob
-
- net.i2p.router.networkdb.kademlia.FloodOnlySearchJob
-
- net.i2p.router.networkdb.kademlia.SingleSearchJob
-
- All Implemented Interfaces:
Job
- Direct Known Subclasses:
IterativeFollowupJob
class SingleSearchJob extends FloodOnlySearchJob
Ask a single peer for a single key. This isn't really a flood-only search job at all, but we extend FloodOnlySearchJob so we can use the same selectors, etc.
-
-
Field Summary
-
Fields inherited from class net.i2p.router.networkdb.kademlia.FloodOnlySearchJob
_onReply, _onTimeout, _replySelector
-
Fields 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
Constructors Constructor Description SingleSearchJob(RouterContext ctx, Hash key, Hash to)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
failed()
Deprecated, unused, see FOSJ overrideString
getName()
Deprecated, unused, see FOSJ overridevoid
runJob()
Deprecated, unused, see FOSJ overrideboolean
shouldProcessDSRM()
(package private) void
success()
Deprecated, unused, see FOSJ override-
Methods inherited from class net.i2p.router.networkdb.kademlia.FloodOnlySearchJob
decrementRemaining
-
Methods inherited from class net.i2p.router.networkdb.kademlia.FloodSearchJob
addDeferred, decrementRemaining, getCreated, getExpiration, getKey, getLookupsRemaining
-
Methods inherited from class net.i2p.router.JobImpl
dropped, getAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toString
-
-
-
-
Constructor Detail
-
SingleSearchJob
public SingleSearchJob(RouterContext ctx, Hash key, Hash to)
- Parameters:
key
- for Router Info ONLY
-
-
Method Detail
-
getName
public String getName()
Description copied from class:FloodSearchJob
Deprecated, unused, see FOSJ override- Specified by:
getName
in interfaceJob
- Overrides:
getName
in classFloodOnlySearchJob
-
shouldProcessDSRM
public boolean shouldProcessDSRM()
- Overrides:
shouldProcessDSRM
in classFloodOnlySearchJob
-
runJob
public void runJob()
Description copied from class:FloodSearchJob
Deprecated, unused, see FOSJ override- Specified by:
runJob
in interfaceJob
- Overrides:
runJob
in classFloodOnlySearchJob
-
failed
void failed()
Description copied from class:FloodSearchJob
Deprecated, unused, see FOSJ override- Overrides:
failed
in classFloodOnlySearchJob
-
success
void success()
Description copied from class:FloodSearchJob
Deprecated, unused, see FOSJ override- Overrides:
success
in classFloodOnlySearchJob
-
-