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, persistpublic static final int DEFAULT_NUM_THREADS
public AsynchronousLocalEngineRunner()
public AsynchronousLocalEngineRunner(int numThreads)
public void execute(TaskProcessor taskProcessor)
EngineRunnerTaskProcessor 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 EngineRunnertaskProcessor - The TaskProcessor to instantiate and execute.public void shutdown()
EngineRunnershutdown in class EngineRunnerpublic boolean hasOpenSlots(TaskProcessor taskProcessor)
EngineRunnerTaskProcessor.hasOpenSlots in class EngineRunnertaskProcessor - The TaskProcessor to execute.public void setInstanceRepository(WorkflowInstanceRepository instRep)
setInstanceRepository in class EngineRunnerCopyright © 1999–2017 Apache OODT. All rights reserved.