Class SingleLookupJob
- java.lang.Object
-
- net.i2p.router.JobImpl
-
- 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
Fields Modifier and Type Field Description 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
Constructors Constructor Description SingleLookupJob(RouterContext ctx, DatabaseSearchReplyMessage dsrm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Descriptive name of the taskvoid
runJob()
Actually perform the task.-
Methods inherited from class net.i2p.router.JobImpl
dropped, getAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toString
-
-
-
-
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)
-
-