Operations class
The operations the Hub invokes on a node, and the results it gets back.
These are payloads, not control messages: each rides inside an omnyhub
NodeRequest/NodeResponse (for calls that need an answer) or NodeNotify
(for one-way pushes), which own the envelope, the correlation id, the timeout
and the failure-on-disconnect. Each type's Operations action name is the
action string on that envelope.
They keep their requestId field. It duplicates the envelope's correlation
id and the transport no longer reads it — but it is part of the handler
signatures applications implement (FormulaHandler, ServiceHandler, …) and
of the JSON the HTTP API returns, so it stays.
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- command → const String
- Hub → node: run a shell command.
- control → const String
- Hub → node: restart / shutdown / update the node.
- formula → const String
- Hub → node: run a formula action.
- formulaStatus → const String
- Hub → node: report the state of the formulas the node carries.
- logs → const String
- Node → hub: a batch of log lines (one-way).
- preset → const String
- Hub → node: apply a preset.
- service → const String
- Hub → node: control an OS service.
- status → const String
- Node → hub: a live status snapshot (one-way).