class StartExplorersJob extends JobImpl
For hidden routers, this job helps maintain integration in the network by aggressively exploring when known peers are few and reducing load otherwise. The job is scheduled to run repeatedly with delays adapted to system load and network state.
| Modifier and Type | Field and Description |
|---|---|
(package private) static int |
LOW_FFS |
(package private) static String |
PROP_EXPLORE_BUCKETS |
(package private) static String |
PROP_EXPLORE_DELAY |
(package private) static String |
PROP_FORCE_EXPLORE |
| Constructor and Description |
|---|
StartExplorersJob(RouterContext context,
KademliaNetworkDatabaseFacade facade)
Constructs a StartExplorersJob to manage peer exploration scheduling.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Descriptive name of the task
|
void |
runJob()
Runs the job, determines if exploration should occur, how many explorations to run,
selects keys to explore, creates and queues ExploreJobs, and schedules the next run.
|
dropped, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toStringstatic final int LOW_FFS
static final String PROP_EXPLORE_BUCKETS
static final String PROP_EXPLORE_DELAY
static final String PROP_FORCE_EXPLORE
public StartExplorersJob(RouterContext context, KademliaNetworkDatabaseFacade facade)
context - the router contextfacade - the network database facade to interact with peer datapublic String getName()
Jobpublic void runJob()