net.i2p.router.networkdb.kademlia
Class SingleLookupJob

java.lang.Object
  extended by net.i2p.router.JobImpl
      extended by net.i2p.router.networkdb.kademlia.SingleLookupJob
All Implemented Interfaces:
Job

 class SingleLookupJob
extends JobImpl

Ask the peer who sent us the DSRM for the RouterInfos... ... but If we have the routerInfo already, try to refetch it from that router itself, (if the info is old or we don't think it is floodfill) which will help us establish that router as a good floodfill and speed our integration into the network. A simple version of SearchReplyJob in SearchJob.java. Skip the profile updates - this should be rare.


Field Summary
static int MAX_TO_FOLLOW
          I2NP spec allows 255, max actually sent (in ../HDLMJ) is 3, so just to prevent trouble, we don't want to queue 255 jobs at once
 
Constructor Summary
SingleLookupJob(RouterContext ctx, DatabaseSearchReplyMessage dsrm)
           
 
Method Summary
 String getName()
          Descriptive name of the task
 void runJob()
          Actually perform the task.
 
Methods inherited from class net.i2p.router.JobImpl
dropped, getAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_TO_FOLLOW

public static final int MAX_TO_FOLLOW
I2NP spec allows 255, max actually sent (in ../HDLMJ) is 3, so just to prevent trouble, we don't want to queue 255 jobs at once

See Also:
Constant Field Values
Constructor Detail

SingleLookupJob

public SingleLookupJob(RouterContext ctx,
                       DatabaseSearchReplyMessage dsrm)
Method Detail

runJob

public void runJob()
Description copied from interface: Job
Actually perform the task. This call blocks until the Job is complete.


getName

public String getName()
Description copied from interface: Job
Descriptive name of the task