SessionsController class

Loads and acts on the sessions of a single node: list, kill, detach, peek. Created per sessions-screen instance (sessions are per-node and ephemeral).

Constructors

SessionsController(OmnyShellService _service, String nodeId)
Creates a controller for nodeId.

Properties

hashCode int
The hash code for this object.
no setterinherited
nodeId String
The node whose sessions are managed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state Observable<AsyncState<List<DetachedSessionInfo>>>
Observable session-list state.
final

Methods

detach(String sessionRef) Future<ActionResult>
Detaches the active sessionRef (empty = sole active), then refreshes.
kill(String sessionRef) Future<ActionResult>
Terminates sessionRef, then refreshes. Returns the outcome.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
peek(String sessionRef) Future<PeekResult>
Captures the current screen of sessionRef without attaching.
refresh() Future<void>
Fetches the session list from the node.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited