java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.networkdb.kademlia.FloodOnlyLookupMatchJob
net.i2p.router.networkdb.kademlia.DirectLookupMatchJob
Override to not call failed() in
setMessage(I2NPMessage), as it will be called from runJob().Field Summary
Fields inherited from class FloodOnlyLookupMatchJob
_log, _search, _successModifier and TypeFieldDescriptionprotected final LogThe log.protected final FloodSearchJobThe parent search job.protected booleanWhether the match was successful.Constructor Summary
ConstructorsConstructorDescriptionDirectLookupMatchJob(RouterContext ctx, FloodSearchJob job) Passes the context and search job up to the flood-only match job.Method Summary
All MethodsModifier and TypeMethodDescriptiongetName()Name of this job.voidsetMessage(I2NPMessage message) Override to not call failed() in setMessage(), as it will be called from runJob().Methods inherited from class FloodOnlyLookupMatchJob
runJobMethods inherited from class JobImpl
dropped, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toStringModifier and TypeMethodDescriptionvoiddropped()Default implementation does nothing.final RouterContextThe router context that this job belongs to.longgetJobId()The unique job ID for this job.longThe timestamp when this job was last made ready for execution.The timing object for this job.voidmadeReady(long now) For JobQueue only, not for external use.protected voidrequeue(long delayMs) Requeue this job to run after the specified delay.toString()
Constructor Details
DirectLookupMatchJob
Passes the context and search job up to the flood-only match job.- Parameters:
ctx- the router context the job runs injob- the flood search job this match reports the store message to
Method Details
getName
Name of this job.- Specified by:
getNamein interfaceJob- Overrides:
getNamein classFloodOnlyLookupMatchJob- Returns:
- the fixed label "Direct Lookup Match", used to identify this job in logs and job statistics
setMessage
Override to not call failed() in setMessage(), as it will be called from runJob().- Specified by:
setMessagein interfaceReplyJob- Overrides:
setMessagein classFloodOnlyLookupMatchJob- Parameters:
message- the received I2NP message