java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.tunnel.pool.TunnelPoolManager.BootstrapPool
All Implemented Interfaces:
Job
Enclosing class:
TunnelPoolManager

private static class TunnelPoolManager.BootstrapPoolextends JobImpl
Builds tunnels for a pool that never came up.
  • Field Details

    • _mgr

      private final TunnelPoolManager _mgr
      The manager owning the pool.
    • _pool

      private final TunnelPool _pool
      The pool being bootstrapped.
    • BOOTSTRAP_INTERVAL_MS

      private static final long BOOTSTRAP_INTERVAL_MS
      Bootstrap attempts are 10 seconds apart.
      See Also:
    • MIN_BOOTSTRAP_TUNNELS

      private static final int MIN_BOOTSTRAP_TUNNELS
      Tunnels that end the bootstrap pass.
      See Also:
  • Constructor Details

    • BootstrapPool

      public BootstrapPool(RouterContext ctx, TunnelPoolManager mgr, TunnelPool pool)
      Build bootstrap tunnels for exploratory pools after the startup delay. For exploratory pools, builds 2-hop tunnels (not zero-hop) to provide usable reply paths. Reschedules until pool has sufficient tunnels.
      Parameters:
      ctx - the router context
      mgr - the pool manager
      pool - the pool to bootstrap
  • Method Details

    • getName

      public String getName()
      The name of this job, as it appears in job statistics.
      Returns:
      the job name
    • runJob

      public void runJob()
      Build bootstrap tunnels for the pool. Reschedules if the pool still needs more tunnels.