AbstractExecutor<TConfig> class abstract

An abstract implementation of a Executor to extend from.

Implemented types
Implementers

Constructors

AbstractExecutor()

Properties

configuration → TConfig?
The configuration of this executor as set when initialized.
no setteroverride
data Stream<DataPoint>
The stream of DataPoint generated from this executor.
no setterinherited
deployment SmartphoneDeployment?
The deployment that this executor is part of executing.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state ExecutorState
The runtime state of this executor.
no setteroverride
stateEvents Stream<ExecutorState>
The runtime state changes of this executor.
no setteroverride

Methods

error() → void
initialize(TConfig configuration, [SmartphoneDeployment? deployment]) → void
Configure and initialize the executor before resuming it.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onInitialize() bool
Callback when this executor is initialized. Returns true if succesfully initialized, false othervise.
onPause() Future<bool>
Callback when this executor is paused. Returns true if successfully paused, false otherwise.
onRestart() Future<bool>
Callback when this executor is restarted. Returns true if successfully restarted, false otherwise.
onResume() Future<bool>
Callback when this executor is resumed. Returns true if successfully resumed, false otherwise.
onStop() Future<bool>
Callback when this executor is stopped. Returns true if successfully stopped, false otherwise.
pause() → void
Pause the executor. Paused until resume or stop is called.
override
restart() → void
Restart the executor.
override
resume() → void
Resume the executor.
override
stop() → void
Stop the executor. Once an executor is stopped, it cannot be resumed again. If you need to restart an executor, use the restart or pause and resume methods.
override
toString() String
A string representation of this object.
override

Operators

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