Executor<TConfig> class abstract

A Executor is responsible for executing data collection based on a configuration TConfig.

The behavior of an executor is controlled by its life-cycle methods: initialize, resume, pause, and stop. A restart can be used to restart an executor (e.g., if its configuration has changed).

The state property reveals the probe's current runtime state. The stateEvents is a stream of state changes which can be listen to as a broadcast stream.

If an error occurs the state of a probe becomes undefined. This is, for example, used when an exception occur.

The executor returns collected data in the data stream. This is the main usage of an executor. For example, to listens to events and print them;

executor.data.forEach(print);
Implementers

Constructors

Executor()

Properties

configuration → TConfig?
The configuration of this executor as set when initialized.
no setter
data Stream<DataPoint>
The stream of DataPoint generated from this executor.
no setter
deployment SmartphoneDeployment?
The deployment that this executor is part of executing.
no setter
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 setter
stateEvents Stream<ExecutorState>
The runtime state changes of this executor.
no setter

Methods

initialize(TConfig configuration, [SmartphoneDeployment? deployment]) → void
Configure and initialize the executor before resuming it.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
Pause the executor. Paused until resume or stop is called.
restart() → void
Restart the executor.
resume() → void
Resume the executor.
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.
toString() String
A string representation of this object.
inherited

Operators

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