public class StopWithSavepointTerminationManager extends Object
StopWithSavepointTerminationManager fulfills the contract given by StopWithSavepointTerminationHandler to run the stop-with-savepoint steps in a specific order.| 构造器和说明 |
|---|
StopWithSavepointTerminationManager(StopWithSavepointTerminationHandler stopWithSavepointTerminationHandler) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
checkStopWithSavepointPreconditions(CheckpointCoordinator checkpointCoordinator,
String targetDirectory,
org.apache.flink.api.common.JobID jobId,
org.slf4j.Logger logger) |
CompletableFuture<String> |
stopWithSavepoint(CompletableFuture<CompletedCheckpoint> completedSavepointFuture,
CompletableFuture<Collection<ExecutionState>> terminatedExecutionStatesFuture,
org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor)
Enforces the correct completion order of the passed
CompletableFuture instances in
accordance to the contract of StopWithSavepointTerminationHandler. |
public StopWithSavepointTerminationManager(StopWithSavepointTerminationHandler stopWithSavepointTerminationHandler)
public CompletableFuture<String> stopWithSavepoint(CompletableFuture<CompletedCheckpoint> completedSavepointFuture, CompletableFuture<Collection<ExecutionState>> terminatedExecutionStatesFuture, org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor)
CompletableFuture instances in
accordance to the contract of StopWithSavepointTerminationHandler.completedSavepointFuture - The CompletableFuture of the savepoint creation step.terminatedExecutionStatesFuture - The CompletableFuture of the termination step.mainThreadExecutor - The executor the StopWithSavepointTerminationHandler
operations run on.CompletableFuture containing the path to the created savepoint.public static void checkStopWithSavepointPreconditions(CheckpointCoordinator checkpointCoordinator, @Nullable String targetDirectory, org.apache.flink.api.common.JobID jobId, org.slf4j.Logger logger)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.