Class: Dynflow::Executors::Abstract
- Inherits:
-
Object
- Object
- Dynflow::Executors::Abstract
- Includes:
- Algebrick::TypeCheck
- Defined in:
- lib/dynflow/executors/abstract.rb
Direct Known Subclasses
Constant Summary collapse
- Event =
Algebrick.type do fields! execution_plan_id: String, step_id: Fixnum, event: Object, result: Future end
- Execution =
Algebrick.type do fields! execution_plan_id: String, finished: Future end
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#world ⇒ Object
readonly
Returns the value of attribute world.
Instance Method Summary collapse
- #event(execution_plan_id, step_id, event, future = Future) ⇒ Object
- #execute(execution_plan_id) ⇒ Future
-
#initialize(world) ⇒ Abstract
constructor
A new instance of Abstract.
- #initialized ⇒ Future
- #terminate(future = Future.new) ⇒ Object
Constructor Details
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
17 18 19 |
# File 'lib/dynflow/executors/abstract.rb', line 17 def logger @logger end |
#world ⇒ Object (readonly)
Returns the value of attribute world.
17 18 19 |
# File 'lib/dynflow/executors/abstract.rb', line 17 def world @world end |
Instance Method Details
#event(execution_plan_id, step_id, event, future = Future) ⇒ Object
30 31 32 |
# File 'lib/dynflow/executors/abstract.rb', line 30 def event(execution_plan_id, step_id, event, future = Future) raise NotImplementedError end |
#execute(execution_plan_id) ⇒ Future
26 27 28 |
# File 'lib/dynflow/executors/abstract.rb', line 26 def execute(execution_plan_id) raise NotImplementedError end |
#initialized ⇒ Future
39 40 41 |
# File 'lib/dynflow/executors/abstract.rb', line 39 def initialized raise NotImplementedError end |