java.lang.Object
net.i2p.router.Tuner.ParamSnapshot
- Enclosing class:
Tuner
Snapshot of a subsystem's tunable parameter values at a point in time.
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanAuto-tuning enabled.final intCurrent value.final intDefault value.final StringHuman-readable description.final intHighest value this param may be tuned to.final intLowest value this param may be tuned to.final StringSubsystem identifier.final StringObserved stat key.final doubleObserved stat value.final double[]Stat history.final intAdjustment step size.final StringSubsystem identifier.final int[]Value history.Constructor Summary
ConstructorsConstructorDescriptionParamSnapshot(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.Method Summary
Field Details
name
Subsystem identifier.description
Human-readable description.subsystem
Subsystem identifier.currentValue
public final int currentValueCurrent value.defaultValue
public final int defaultValueDefault value.min
public final int minLowest value this param may be tuned to.max
public final int maxHighest value this param may be tuned to.step
public final int stepAdjustment step size.autoTuning
public final boolean autoTuningAuto-tuning enabled.observedStat
Observed stat key.observedStatValue
public final double observedStatValueObserved stat value.valueHistory
public final int[] valueHistoryValue history.statHistory
public final double[] statHistoryStat 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 namedescription- the param descriptionsubsystem- the subsystem namecurrentValue- the current valuedefaultValue- the default valuemin- the minimum valuemax- the maximum valuestep- the step sizeautoTuning- whether auto-tuning is enabledobservedStat- the observed stat nameobservedStatValue- the observed stat valuevalueHistory- the value history arraystatHistory- the stat history array