DVDeviceRuntime class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
Static Properties
arch
→ String
no setter
onRestartLoop
↔ void Function(String finding ) ?
Called when a restart loop is detected instead of restarting again
(DV-KIOSK-008). The app shows its diagnostics screen from here.
getter/setter pair
probes
↔ DVDeviceProbes
How this platform reads its numbers. Set by the platform's bindings
before register .
getter/setter pair
restart
↔ void Function(String state )
What a missed heartbeat does. Exits 70 by default -- EX_SOFTWARE, so a
supervisor with restart-on-failure starts the app again.
getter/setter pair
stateDirectory
↔ String ?
Where the device id, provisioning and restart record live. Null means
~/.dartvel/device.
getter/setter pair
Static Methods
arm (Duration timeout , {required String reason })
→ void
Arms the watchdog: a heartbeat must arrive within timeout, every
time, or restart runs. A startup arm is a boot, and a boot that is
the fourth in five minutes is a loop, reported rather than restarted.
deviceId ()
→ String
The provisioned id, else one generated once and kept.
diagnostics ()
→ Map <String , Object ? >
health ()
→ Map <String , Object ? >
heartbeat ()
→ void
manifest ()
→ Map <String , Object ? >
provision (Map <Object ? , Object ? > request )
→ Map <String , Object ? >
recordRestart (DateTime at )
→ void
register (void bind (String , FutureOr <Object ? > (Object ? ) ) )
→ void
resetWatchdogForTest ()
→ void
Cancels the watchdog and forgets its state. For tests.
restartLoopDetected ({required Duration within , required int more })
→ bool
More than more restarts inside within: the loop the spec names.
unregister ()
→ void
verdict ({required int memoryAvailableBytes , required int memoryTotalBytes , required int diskFreeBytes })
→ bool
Healthy unless memory or disk is nearly gone: under 5% of memory free,
or under 200 MB of disk.