public class BatchSharingExecutor extends ThreadSharingExecutor
Modifier and Type | Class and Description |
---|---|
protected class |
BatchSharingExecutor.BatchWorker |
protected class |
BatchSharingExecutor.CommunicationWorker |
Modifier and Type | Field and Description |
---|---|
protected boolean |
notStopped |
channel, config, executionHook, executionPlan, numThreads, threads
Constructor and Description |
---|
BatchSharingExecutor(Config cfg,
int workerId,
TWSChannel channel,
ExecutionPlan plan,
IExecutionHook hook) |
Modifier and Type | Method and Description |
---|---|
boolean |
closeExecution()
Wait for the execution to complete
|
boolean |
execute(boolean close)
Execute the specific plan
|
boolean |
isNotStopped() |
boolean |
runExecution()
Execution Method for Batch Tasks
|
IExecution |
runIExecution()
Specific implementation needs to implement this method
|
close, execute, getExecutionPlan, iExecute
public BatchSharingExecutor(Config cfg, int workerId, TWSChannel channel, ExecutionPlan plan, IExecutionHook hook)
public boolean runExecution()
runExecution
in class ThreadSharingExecutor
public boolean execute(boolean close)
IExecutor
public boolean isNotStopped()
public IExecution runIExecution()
ThreadSharingExecutor
runIExecution
in class ThreadSharingExecutor
public boolean closeExecution()
IExecutor