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

class FloodfillRouterInfoFloodJobextends JobImpl
Job to flood nearby floodfill routers with our RI. Speeds up integration of new ffs. Created for #1195. Also called when opting out of ff to call off the hounds ASAP. Currently floods FNDF.MAX_TO_FLOOD * 2 routers nearest to us.
  • Field Details

    • _log

      private final Log _log
      Logger for this class.
    • _facade

      private final FloodfillNetworkDatabaseFacade _facade
      The store whose entry is flooded.
    • FLOOD_PEERS

      private static final int FLOOD_PEERS
      How many peers receive the flood, twice the floodfill count.
      See Also:
  • Constructor Details

    • FloodfillRouterInfoFloodJob

      public FloodfillRouterInfoFloodJob(RouterContext context, FloodfillNetworkDatabaseFacade facade)
      Stores the network database and the log the flood runs under.
      Parameters:
      context - the router context whose clock, profile organizer and log manager this job uses
      facade - the network database whose local RouterInfo is to be flooded
  • Method Details

    • getName

      public String getName()
      Name of this job.
      Returns:
      the fixed label "Distribute Local RouterInfo to Floodfills", used to identify this job in logs and job statistics
    • runJob

      public void runJob()
      Flood the local RouterInfo out to the floodfill peers.