public abstract class ThreadSharingExecutor extends java.lang.Object implements IExecutor
| Modifier and Type | Field and Description |
|---|---|
protected TWSChannel |
channel
Channel
|
protected Config |
config
The configuration
|
protected IExecutionHook |
executionHook
The execution hook
|
protected ExecutionPlan |
executionPlan
Execution plan
|
protected int |
numThreads
Number of threads
|
protected java.util.concurrent.ExecutorService |
threads
Thread service
|
| Constructor and Description |
|---|
ThreadSharingExecutor(Config config,
TWSChannel ch,
ExecutionPlan plan,
IExecutionHook hook) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Terminate the executor
|
boolean |
execute()
Execute the specific plan
|
ExecutionPlan |
getExecutionPlan()
Get the execution plan associated with this executor
|
IExecution |
iExecute()
Asynchronously execute a plan, One need to call progress on the execution object returned to
continue the execution
|
abstract boolean |
runExecution()
Specific implementation needs to implement this method
|
abstract IExecution |
runIExecution()
Specific implementation needs to implement this method
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseExecution, execute, onFaultprotected int numThreads
protected java.util.concurrent.ExecutorService threads
protected TWSChannel channel
protected Config config
protected ExecutionPlan executionPlan
protected IExecutionHook executionHook
public ThreadSharingExecutor(Config config, TWSChannel ch, ExecutionPlan plan, IExecutionHook hook)
public boolean execute()
IExecutorpublic IExecution iExecute()
IExecutorpublic abstract boolean runExecution()
public abstract IExecution runIExecution()
public void close()
IExecutorpublic ExecutionPlan getExecutionPlan()
IExecutorgetExecutionPlan in interface IExecutor