public interface IExecutor extends FaultAcceptable
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
|
default void |
onFault(Fault fault)
We are notifying that there is an error in the system and we need to terminate the current
execution.
|
boolean execute()
boolean execute(boolean close)
IExecution iExecute()
boolean closeExecution()
void close()
default void onFault(Fault fault) throws Twister2Exception
onFault
in interface FaultAcceptable
fault
- the error codeTwister2Exception
- if an exception occurs while processing the faultExecutionPlan getExecutionPlan()