java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.startup.RebuildRouterInfoJob
All Implemented Interfaces:
Job

class RebuildRouterInfoJobextends JobImpl
This used be called from StartAcceptingClientsJob but is now disabled. It is still called once from LoadRouterInfoJob (but not run as a Job).

The following comments appear to be incorrect... it rebuilds if the router.info file does not exist. There is no check for a router.info.rebuild file.

If the file router.info.rebuild exists, rebuild the router info and republish. This is useful for dhcp or other situations where the router addresses change - simply create the router.info.rebuild file after modifying router.config and within 45 seconds (the current check frequency), the router info will be rebuilt with new addresses and stats, as well as a new version, then republished. Afterwards, the router.info.rebuild file is deleted.

  • Field Details

    • _log

      private final Log _log
      Logger for this class.
  • Constructor Details

    • RebuildRouterInfoJob

      public RebuildRouterInfoJob(RouterContext context)
      Creates the job and opens its log.
      Parameters:
      context - router context, handed to the JobImpl superclass and used for the log
  • Method Details

    • getName

      public String getName()
      Name of this job.
      Returns:
      the fixed descriptive name "Rebuild RouterInfo" of this job
    • runJob

      public void runJob()
      Not used; rebuilding is now triggered from LoadRouterInfoJob.
    • rebuildRouterInfo

      void rebuildRouterInfo()
      Rebuild with default settings.
    • rebuildRouterInfo

      void rebuildRouterInfo(boolean alreadyRunning)
      Rebuild the router info and keys.
      Parameters:
      alreadyRunning - carried along on the recursive retries but never read