OperationStore class
The operations the Hub is running, and the last few it ran.
Bounded and in memory, like the log tail: an operation is a handle on work in flight, and what it leaves behind — the formula that ran, whether it worked, who asked — is already in the audit trail and the event stream, which are the things that persist. Keeping every operation forever would be a second, worse copy of both.
Constructors
- OperationStore({int capacity = 200})
-
Creates a store retaining
capacityfinished operations.
Properties
Methods
-
all(
{String? nodeId, bool runningOnly = false}) → List< Operation> -
Every known operation, newest first; optionally only those for
nodeId, or only those still running. -
find(
String id) → Operation? -
The operation with
id, ornull. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put(
Operation operation) → void -
Records or replaces
operation. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited