Interface ExecutionOperations
-
- All Known Implementing Classes:
DefaultExecutionOperations
public interface ExecutionOperations
Operations on theExecution
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<?>
cancel(Execution execution)
Cancel the execution.void
deploy(Execution execution)
Deploy the execution.void
markFailed(Execution execution, Throwable cause)
Mark the execution as FAILED.
-
-
-
Method Detail
-
deploy
void deploy(Execution execution) throws JobException
Deploy the execution.- Parameters:
execution
- to deploy.- Throws:
JobException
- if the execution cannot be deployed to the assigned resource
-
cancel
CompletableFuture<?> cancel(Execution execution)
Cancel the execution.- Parameters:
execution
- to cancel- Returns:
- Future which completes when the cancellation is done
-
-