public abstract class EngineRunner extends Object
WorkflowTask
should
run. In short, executes a WorkflowTask
for the Workflow Engine.Constructor and Description |
---|
EngineRunner() |
Modifier and Type | Method and Description |
---|---|
abstract void |
execute(TaskProcessor taskProcessor)
Executes a
TaskProcessor on an execution substrate. |
abstract boolean |
hasOpenSlots(TaskProcessor taskProcessor)
Decides whether or not there are available slots within this runner
to execute the provided
TaskProcessor . |
abstract void |
setInstanceRepository(WorkflowInstanceRepository instRep) |
abstract void |
shutdown()
Shuts this runner down and frees its resources.
|
public abstract void execute(TaskProcessor taskProcessor)
TaskProcessor
on an execution substrate. Ideally there
will only ever be two of these substrates, one for local execution, and
another for communication with the Resource Manager.taskProcessor
- The TaskProcessor
to instantiate and execute.Exception
- If any error occurs.public abstract void shutdown()
Exception
- If any error occurs while freeing resources.public abstract boolean hasOpenSlots(TaskProcessor taskProcessor)
TaskProcessor
.taskProcessor
- The TaskProcessor
to execute.Exception
- If any error occurs.public abstract void setInstanceRepository(WorkflowInstanceRepository instRep)
Copyright © 1999–2017 Apache OODT. All rights reserved.