DesiredStateRepository class abstract
Persists the state each node is supposed to be in.
The Hub's other repositories record what happened; this one records what is meant to be true. The difference between the two is drift, and being able to ask for it — rather than re-applying a preset and hoping — is the whole point of declaring a state at all.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
all(
) → Future< Map< String, DesiredState> > - Every declared state, by node id.
-
delete(
NodeId nodeId) → Future< bool> -
Stops expecting anything of
nodeId; returns true if it had a state. -
find(
NodeId nodeId) → Future< DesiredState?> -
The state
nodeIdshould be in, ornullif none was ever declared. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
NodeId nodeId, DesiredState state) → Future< void> -
Sets the state
nodeIdshould converge to. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited