-
@Serializable() public final class GuardrailConfigGuardrail tunables shared with the registry's admission guard (GRACEFUL_SHUTDOWN_IMPLEMENTATION.md §4.4). The server serves the same numbers it enforces at register time, so the client ResourceGate and the server memory-fit guard can never disagree; the defaults here apply when the block is absent (older registry) and match the server's fallbacks.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classGuardrailConfig.Companion
-
Field Summary
Fields Modifier and Type Field Description private final DoublememoryBudgetFractionprivate final Map<String, Double>frameworkMultipliersprivate final DoubleminBatteryLevelprivate final DoublestorageHeadroomprivate final DoubleunknownMemoryGbprivate final WatchdogConfigwatchdog
-
Constructor Summary
Constructors Constructor Description GuardrailConfig(Double memoryBudgetFraction, Map<String, Double> frameworkMultipliers, Double minBatteryLevel, Double storageHeadroom, Double unknownMemoryGb, WatchdogConfig watchdog)
-
Method Summary
Modifier and Type Method Description final DoublegetMemoryBudgetFraction()final Map<String, Double>getFrameworkMultipliers()final DoublegetMinBatteryLevel()final DoublegetStorageHeadroom()final DoublegetUnknownMemoryGb()final WatchdogConfiggetWatchdog()final DoublebudgetFraction()final DoublemultiplierFor(String framework)final DoublebatteryFloor()Battery floor for the download deferral (skipped while charging). final DoublestorageHeadroom()Free-storage multiple required before a download (size × headroom). final LongunknownMemoryBytes()Assumed total memory, in bytes, when the device reports none. -
-
Method Detail
-
getMemoryBudgetFraction
final Double getMemoryBudgetFraction()
-
getFrameworkMultipliers
final Map<String, Double> getFrameworkMultipliers()
-
getMinBatteryLevel
final Double getMinBatteryLevel()
-
getStorageHeadroom
final Double getStorageHeadroom()
-
getUnknownMemoryGb
final Double getUnknownMemoryGb()
-
getWatchdog
final WatchdogConfig getWatchdog()
-
budgetFraction
final Double budgetFraction()
-
multiplierFor
final Double multiplierFor(String framework)
-
batteryFloor
final Double batteryFloor()
Battery floor for the download deferral (skipped while charging).
-
storageHeadroom
final Double storageHeadroom()
Free-storage multiple required before a download (size × headroom).
-
unknownMemoryBytes
final Long unknownMemoryBytes()
Assumed total memory, in bytes, when the device reports none.
-
-
-
-