java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.networkdb.kademlia.StartExplorersJob
All Implemented Interfaces:
Job

class StartExplorersJobextends JobImpl
This job initiates exploration of the network database by selecting keys to explore and queuing ExploreJobs up to a maximum per run. It adjusts the exploration frequency and intensity based on network conditions such as number of known routers, floodfills, system load, and message delays.

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.

  • Field Details

  • Constructor Details

    • StartExplorersJob

      public StartExplorersJob(RouterContext context, KademliaNetworkDatabaseFacade facade)
      Job to manage peer exploration scheduling.
      Parameters:
      context - the router context
      facade - the network database facade to interact with peer data
  • Method Details

    • getName

      public String getName()
      Name of this job.
      Returns:
      the name this job is listed under in the job queue and the logs, "Start NetDb Explorers"
    • runJob

      public 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.