java.lang.Object
net.i2p.router.Tuner.BaseParam
net.i2p.router.Tuner.ExploreBredthParam
All Implemented Interfaces:
Tuner.TunableParam
Enclosing class:
Tuner

private class Tuner.ExploreBredthParamextends Tuner.BaseParam
Breadth (concurrent exploratory searches) of the exploratory search cycle. Scaffolds the network while there are few routers known; raising it warms more neighbors at the cost of more query traffic. Config value is read by ExploreJob at each job construction.
  • Constructor Details

    • ExploreBredthParam

      ExploreBredthParam()
      Creates the parameter that tunes the exploratory search breadth.
  • Method Details

    • applyValue

      protected void applyValue(int value)
      Description copied from class: Tuner.BaseParam
      Apply the tunable value to the router configuration.
      Specified by:
      applyValue in class Tuner.BaseParam
      Parameters:
      value - the tunable value to apply to router configuration
    • getRuntimeValue

      protected int getRuntimeValue()
      Description copied from class: Tuner.BaseParam
      Current runtime value read from the router configuration.
      Specified by:
      getRuntimeValue in class Tuner.BaseParam
      Returns:
      current runtime value read from router config
    • getObservedStat

      protected double getObservedStat(RouterContext ctx)
      Read the observed stat for autotuning decisions.
      Specified by:
      getObservedStat in class Tuner.BaseParam
      Parameters:
      ctx - router context, never null
      Returns:
      observed stat value for autotuning
    • computeTarget

      protected int computeTarget(double observed)
      Description copied from class: Tuner.BaseParam
      Target tunable value computed from the observed stat.
      Specified by:
      computeTarget in class Tuner.BaseParam
      Parameters:
      observed - current stat value
      Returns:
      target tunable value