public class AsynchronousLocalEngineRunner extends AbstractEngineRunnerBase
TaskProcessor
asynchronously.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_NUM_THREADS |
instRep
Constructor and Description |
---|
AsynchronousLocalEngineRunner() |
AsynchronousLocalEngineRunner(int numThreads) |
Modifier and Type | Method and Description |
---|---|
void |
execute(TaskProcessor taskProcessor)
Executes a
TaskProcessor on an execution substrate. |
boolean |
hasOpenSlots(TaskProcessor taskProcessor)
Decides whether or not there are available slots within this runner
to execute the provided
TaskProcessor . |
void |
setInstanceRepository(WorkflowInstanceRepository instRep) |
void |
shutdown()
Shuts this runner down and frees its resources.
|
getLifecycle, getTaskFromProcessor, persist
public static final int DEFAULT_NUM_THREADS
public AsynchronousLocalEngineRunner()
public AsynchronousLocalEngineRunner(int numThreads)
public void execute(TaskProcessor taskProcessor)
EngineRunner
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.execute
in class EngineRunner
taskProcessor
- The TaskProcessor
to instantiate and execute.public void shutdown()
EngineRunner
shutdown
in class EngineRunner
public boolean hasOpenSlots(TaskProcessor taskProcessor)
EngineRunner
TaskProcessor
.hasOpenSlots
in class EngineRunner
taskProcessor
- The TaskProcessor
to execute.public void setInstanceRepository(WorkflowInstanceRepository instRep)
setInstanceRepository
in class EngineRunner
Copyright © 1999–2017 Apache OODT. All rights reserved.