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(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(JobID jobId, CheckpointPlanCalculatorContext context, Iterable<ExecutionJobVertex> jobVerticesInTopologyOrderIterable, boolean allowCheckpointsAfterTasksFinished)
-
-
Method Detail
-
calculateCheckpointPlan
public CompletableFuture<CheckpointPlan> calculateCheckpointPlan()
Description copied from interface:CheckpointPlanCalculator
Calculates the plan of the next checkpoint.- Specified by:
calculateCheckpointPlan
in interfaceCheckpointPlanCalculator
- Returns:
- The result plan.
-
-