Class DefaultExecutionOperations
- java.lang.Object
-
- org.apache.flink.runtime.scheduler.DefaultExecutionOperations
-
- All Implemented Interfaces:
ExecutionOperations
public class DefaultExecutionOperations extends Object implements ExecutionOperations
Default implementation ofExecutionOperations
.
-
-
Constructor Summary
Constructors Constructor Description DefaultExecutionOperations()
-
Method Summary
All Methods Instance Methods Concrete 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
public void deploy(Execution execution) throws JobException
Description copied from interface:ExecutionOperations
Deploy the execution.- Specified by:
deploy
in interfaceExecutionOperations
- Parameters:
execution
- to deploy.- Throws:
JobException
- if the execution cannot be deployed to the assigned resource
-
cancel
public CompletableFuture<?> cancel(Execution execution)
Description copied from interface:ExecutionOperations
Cancel the execution.- Specified by:
cancel
in interfaceExecutionOperations
- Parameters:
execution
- to cancel- Returns:
- Future which completes when the cancellation is done
-
markFailed
public void markFailed(Execution execution, Throwable cause)
Description copied from interface:ExecutionOperations
Mark the execution as FAILED.- Specified by:
markFailed
in interfaceExecutionOperations
- Parameters:
execution
- to mark as failed.cause
- of the execution failure
-
-