Class StartExplorersJob
java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.networkdb.kademlia.StartExplorersJob
- All Implemented Interfaces:
Job
class StartExplorersJob extends JobImpl
Fire off search jobs for random keys from the explore pool, up to MAX_PER_RUN
at a time.
If the explore pool is empty, just search for a random key.
For hidden mode routers, this is the primary mechanism for staying integrated.
The goal is to keep known router count above LOW_ROUTERS and
the known floodfill count above LOW_FFS.
-
Field Summary
Fields Modifier and Type Field Description (package private) static intLOW_FFS(package private) static StringPROP_EXPLORE_BUCKETS(package private) static StringPROP_EXPLORE_DELAY(package private) static StringPROP_FORCE_EXPLORE -
Constructor Summary
Constructors Constructor Description StartExplorersJob(RouterContext context, KademliaNetworkDatabaseFacade facade) -
Method Summary
Modifier and Type Method Description StringgetName()Descriptive name of the taskvoidrunJob()Actually perform the task.voidupdateExploreSchedule()the exploration has found some new peers - update the schedule so that we'll explore appropriately.Methods inherited from class net.i2p.router.JobImpl
dropped, getAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toString
-
Field Details
-
LOW_FFS
static final int LOW_FFS- See Also:
- Constant Field Values
-
PROP_EXPLORE_DELAY
- See Also:
- Constant Field Values
-
PROP_EXPLORE_BUCKETS
- See Also:
- Constant Field Values
-
PROP_FORCE_EXPLORE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
getName
Description copied from interface:JobDescriptive name of the task -
runJob
public void runJob()Description copied from interface:JobActually perform the task. This call blocks until the Job is complete. -
updateExploreSchedule
public void updateExploreSchedule()the exploration has found some new peers - update the schedule so that we'll explore appropriately.
-