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, start, stop, 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 measurements 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
deployment SmartphoneDeployment?
The deployment that this executor is part of executing.
no setter
hashCode int
The hash code for this object.
no setterinherited
isStarting bool
Is this executor in the process of being started?
no setter
measurements Stream<Measurement>
The stream of Measurement collected by this executor.
no setter
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

dispose() → void
Dispose of this executor.
initialize(TConfig configuration, [SmartphoneDeployment? deployment]) → void
Configure and initialize the executor before starting it.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restart() → void
Restart the executor.
start() → void
Start the executor.
stop() → void
Stop the executor. Stopped until start or restart is called.
toString() String
A string representation of this object.
inherited

Operators

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