java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.networkdb.kademlia.FloodfillNetworkDatabaseFacade.DropLookupFoundJob
- All Implemented Interfaces:
Job
- Enclosing class:
FloodfillNetworkDatabaseFacade
Verify a failing peer after a successful lookup.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RouterInfoThe router info being stored.private final HashThe peer the reply goes to.Constructor Summary
ConstructorsConstructorDescriptionDropLookupFoundJob(RouterContext ctx, Hash peer, RouterInfo info) Job to verify a failing peer after a successful lookup.Method Summary
All MethodsMethods 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()
Field Details
_peer
The peer the reply goes to._info
The router info being stored.
Constructor Details
DropLookupFoundJob
Job to verify a failing peer after a successful lookup.- Parameters:
ctx- router context the job runs againstpeer- the floodfill peer that returned the same RouterInfo we already hadinfo- the stored RouterInfo for comparison
Method Details
getName
runJob
public void runJob()Compare updated RouterInfo and drop peer if unchanged.