public class DefaultExecutionOperations extends Object implements ExecutionOperations
ExecutionOperations
.Constructor and Description |
---|
DefaultExecutionOperations() |
Modifier and Type | Method and 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.
|
public void deploy(Execution execution) throws JobException
ExecutionOperations
deploy
in interface ExecutionOperations
execution
- to deploy.JobException
- if the execution cannot be deployed to the assigned resourcepublic CompletableFuture<?> cancel(Execution execution)
ExecutionOperations
cancel
in interface ExecutionOperations
execution
- to cancelpublic void markFailed(Execution execution, Throwable cause)
ExecutionOperations
markFailed
in interface ExecutionOperations
execution
- to mark as failed.cause
- of the execution failureCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.