public static class Tuner.AutotuneConfig extends Object
Stores tuner metadata (value, default, min, max, step) for each
param. Actual config props that the router reads still go to
router.config via each param's applyValue().
Writes are throttled: values are marked dirty and flushed to
disk at most once per 5 minutes (save()). Use
forceSave() for unconditional writes (e.g. shutdown).
| Constructor and Description |
|---|
AutotuneConfig(RouterContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void | forceSave()Unconditional write — used on shutdown and form saves. |
(package private) File | getFile()Autotune config file. |
(package private) int | getInt(String key,
int defaultVal)Read an integer property value. |
(package private) String | getProperty(String key)Read a property value. |
void | save()Write to disk only if dirty and ≥5min since last write. |
void | setProperty(String key,
String value)Set a property. |
public AutotuneConfig(RouterContext ctx)
ctx - the router context