ExecutorFactory class

Creates and caches the trigger and task executors of all deployments.

A singleton used by TaskControlExecutor. Executors are cached per study deployment: task controls in the same deployment that share a trigger id or task name share one executor, while deployments never share executors.

Use getTaskExecutor to get or create a task executor. Use getTriggerExecutor to get an existing trigger executor, and createTriggerExecutor to create a new one with the registered TriggerFactorys. Sampling packages with their own triggers register a factory with registerTriggerFactory.

Constructors

ExecutorFactory()
Returns the singleton ExecutorFactory.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createTriggerExecutor(String studyDeploymentId, int triggerId, TriggerConfiguration trigger) → TriggerExecutor<TriggerConfiguration>?
Creates a TriggerExecutor for trigger and caches it.
dispose() → void
Clears the cache of trigger and task executors.
getTaskExecutor(String studyDeploymentId, TaskConfiguration task) → TaskExecutor<TaskConfiguration>?
Returns the TaskExecutor for task in studyDeploymentId.
getTriggerExecutor(String studyDeploymentId, int triggerId) → TriggerExecutor<TriggerConfiguration>?
Returns the cached TriggerExecutor for triggerId, or null if none.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerTriggerFactory(TriggerFactory factory) → void
Registers factory for all trigger types in TriggerFactory.types.
remove(String studyDeploymentId) → void
Clears the cached trigger and task executors of studyDeploymentId.
toString() → String
A string representation of this object.
inherited

Operators

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