Class DefaultCheckpointPlanCalculator
- java.lang.Object
-
- org.apache.flink.runtime.checkpoint.DefaultCheckpointPlanCalculator
-
- All Implemented Interfaces:
CheckpointPlanCalculator
public class DefaultCheckpointPlanCalculator extends Object implements CheckpointPlanCalculator
Default implementation forCheckpointPlanCalculator. If all tasks are running, it directly marks all the sources as tasks to trigger, otherwise it would try to find the running tasks without running processors as tasks to trigger.
-
-
Constructor Summary
Constructors Constructor Description DefaultCheckpointPlanCalculator(org.apache.flink.api.common.JobID jobId, CheckpointPlanCalculatorContext context, Iterable<ExecutionJobVertex> jobVerticesInTopologyOrderIterable, boolean allowCheckpointsAfterTasksFinished)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<CheckpointPlan>calculateCheckpointPlan()Calculates the plan of the next checkpoint.
-
-
-
Constructor Detail
-
DefaultCheckpointPlanCalculator
public DefaultCheckpointPlanCalculator(org.apache.flink.api.common.JobID jobId, CheckpointPlanCalculatorContext context, Iterable<ExecutionJobVertex> jobVerticesInTopologyOrderIterable, boolean allowCheckpointsAfterTasksFinished)
-
-
Method Detail
-
calculateCheckpointPlan
public CompletableFuture<CheckpointPlan> calculateCheckpointPlan()
Description copied from interface:CheckpointPlanCalculatorCalculates the plan of the next checkpoint.- Specified by:
calculateCheckpointPlanin interfaceCheckpointPlanCalculator- Returns:
- The result plan.
-
-