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.voiddeploy(Execution execution)Deploy the execution.voidmarkFailed(Execution execution, Throwable cause)Mark the execution as FAILED.
-
-
-
Method Detail
-
deploy
public void deploy(Execution execution) throws JobException
Description copied from interface:ExecutionOperationsDeploy the execution.- Specified by:
deployin 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:ExecutionOperationsCancel the execution.- Specified by:
cancelin 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:ExecutionOperationsMark the execution as FAILED.- Specified by:
markFailedin interfaceExecutionOperations- Parameters:
execution- to mark as failed.cause- of the execution failure
-
-