AggregateExecutor
An executor that runs a set of child executors.
Resuming, pausing or disposing it does the same to all children, and its measurements merges the measurements of all children. See SmartphoneDeploymentExecutor and TaskExecutor for examples.
- Inheritance
-
- Object
- AbstractExecutor<
TConfig> - AggregateExecutor
- Implementers
Constructors
AggregateExecutor
Properties
deviceInfo
executors
The set of underlying executors that this aggregate executor is managing.
measurements
The stream of Measurement collected by this executor.
Methods
addExecutor
- Executor executor
Adds executor to executors and forwards its measurements.
onDispose
Callback when this executor is disposed.
Subclasses should override this, to implement any cleanup to be done before disposing.
onPause
Called by pause. Returns true if successfully paused.
If false, the state is not changed.
onResume
Called by resume. Returns true if successfully resumed.
If false, the executor moves to ExecutorState.PausedButShouldBeResumed.
removeExecutor
- Executor executor
Removes executor from executors and stops forwarding its measurements.