public class BatchSharingExecutor2 extends java.lang.Object implements IExecutor
Modifier and Type | Class and Description |
---|---|
protected class |
BatchSharingExecutor2.BatchWorker |
protected class |
BatchSharingExecutor2.CommunicationWorker |
Modifier and Type | Field and Description |
---|---|
protected IExecutionHook |
executionHook
The execution hook
|
protected boolean |
notStopped |
protected ExecutionPlan |
plan
The current plan we are executing
|
Constructor and Description |
---|
BatchSharingExecutor2(Config cfg,
int workerId,
TWSChannel channel,
ExecutionPlan plan,
IExecutionHook hook) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Terminate the executor
|
boolean |
closeExecution()
Wait for the execution to complete
|
boolean |
execute()
Execute the specific plan
|
boolean |
execute(boolean close)
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
|
boolean |
isNotStopped() |
boolean |
runExecution(ExecutionPlan executionPlan)
Execution Method for Batch Tasks
|
IExecution |
runIExecution() |
protected boolean notStopped
protected ExecutionPlan plan
protected IExecutionHook executionHook
public BatchSharingExecutor2(Config cfg, int workerId, TWSChannel channel, ExecutionPlan plan, IExecutionHook hook)
public boolean execute()
IExecutor
public IExecution iExecute()
IExecutor
public boolean execute(boolean close)
IExecutor
public void close()
IExecutor
public boolean isNotStopped()
public ExecutionPlan getExecutionPlan()
IExecutor
getExecutionPlan
in interface IExecutor
public boolean runExecution(ExecutionPlan executionPlan)
public IExecution runIExecution()
public boolean closeExecution()
IExecutor
closeExecution
in interface IExecutor