java.lang.Object
net.i2p.router.Tuner.ParamSnapshot
Enclosing class:
Tuner

public static class Tuner.ParamSnapshotextends Object
Snapshot of a subsystem's tunable parameter values at a point in time.
  • Field Details

    • name

      public final String name
      Subsystem identifier.
    • description

      public final String description
      Human-readable description.
    • subsystem

      public final String subsystem
      Subsystem identifier.
    • currentValue

      public final int currentValue
      Current value.
    • defaultValue

      public final int defaultValue
      Default value.
    • min

      public final int min
      Lowest value this param may be tuned to.
    • max

      public final int max
      Highest value this param may be tuned to.
    • step

      public final int step
      Adjustment step size.
    • autoTuning

      public final boolean autoTuning
      Auto-tuning enabled.
    • observedStat

      public final String observedStat
      Observed stat key.
    • observedStatValue

      public final double observedStatValue
      Observed stat value.
    • valueHistory

      public final int[] valueHistory
      Value history.
    • statHistory

      public final double[] statHistory
      Stat history.
  • Constructor Details

    • ParamSnapshot

      public ParamSnapshot(String name, String description, String subsystem, int currentValue, int defaultValue, int min, int max, int step, boolean autoTuning, String observedStat, double observedStatValue, int[] valueHistory, double[] statHistory)
      A tunable parameter with the given name, description and subsystem.
      Parameters:
      name - the param name
      description - the param description
      subsystem - the subsystem name
      currentValue - the current value
      defaultValue - the default value
      min - the minimum value
      max - the maximum value
      step - the step size
      autoTuning - whether auto-tuning is enabled
      observedStat - the observed stat name
      observedStatValue - the observed stat value
      valueHistory - the value history array
      statHistory - the stat history array