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 capacity finished operations.

Properties

capacity int
How many finished operations to keep. Running ones are never evicted.
final
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({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, or null.
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