pip_services3_commons.run.Executor module
pip_services3_commons.run.Executor
Executor component implementation
- copyright
Conceptual Vision Consulting LLC 2018-2019, see AUTHORS for more details.
- license
MIT, see LICENSE for more details.
-
class
pip_services3_commons.run.Executor.
Executor
Bases:
object
Helper class that executes components.
-
static
execute
(correlation_id: Optional[str, None], components: List[Any], args: pip_services3_commons.run.Parameters.Parameters = None) Executes multiple components.
To be executed components must implement
IExecutable
interface. If they don’t the call to this method has no effect.- Parameters
correlation_id – (optional) transaction id to trace execution through call chain.
components – a list of components that are to be executed.
args – execution arguments.
- Returns
execution result
-
static
execute_one
(correlation_id: Optional[str, None], component: Any, args: pip_services3_commons.run.Parameters.Parameters) Executes specific component. To be executed components must implement
IExecutable
interface. If they don’t the call to this method has no effect.- Parameters
correlation_id – (optional) transaction id to trace execution through call chain.
component – the component that is to be executed.
args – execution arguments.
- Returns
execution result
-
static