Class DefaultCheckpointPlan
- java.lang.Object
-
- org.apache.flink.runtime.checkpoint.DefaultCheckpointPlan
-
- All Implemented Interfaces:
CheckpointPlan
,FinishedTaskStateProvider
public class DefaultCheckpointPlan extends Object implements CheckpointPlan
The default implementation of heCheckpointPlan
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.checkpoint.FinishedTaskStateProvider
FinishedTaskStateProvider.PartialFinishingNotSupportedByStateException
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fulfillFinishedTaskStatus(Map<OperatorID,OperatorState> operatorStates)
Fulfills the state for the finished subtasks and operators to indicate they are finished.List<Execution>
getFinishedTasks()
Returns tasks that have already been finished when taking the checkpoint.Collection<ExecutionJobVertex>
getFullyFinishedJobVertex()
Returns the job vertices whose tasks are all finished when taking the checkpoint.List<ExecutionVertex>
getTasksToCommitTo()
Returns tasks that are still running when taking the checkpoint, these need to be sent a message when the checkpoint is confirmed.List<Execution>
getTasksToTrigger()
Returns the tasks who need to be sent a message when a checkpoint is started.List<Execution>
getTasksToWaitFor()
Returns tasks who need to acknowledge a checkpoint before it succeeds.boolean
mayHaveFinishedTasks()
Returns whether we support checkpoints after some tasks finished.void
reportTaskFinishedOnRestore(ExecutionVertex task)
Reports thetask
is finished on restoring.void
reportTaskHasFinishedOperators(ExecutionVertex task)
Reports thetask
has finished all the operators.
-
-
-
Method Detail
-
getTasksToTrigger
public List<Execution> getTasksToTrigger()
Description copied from interface:CheckpointPlan
Returns the tasks who need to be sent a message when a checkpoint is started.- Specified by:
getTasksToTrigger
in interfaceCheckpointPlan
-
getTasksToWaitFor
public List<Execution> getTasksToWaitFor()
Description copied from interface:CheckpointPlan
Returns tasks who need to acknowledge a checkpoint before it succeeds.- Specified by:
getTasksToWaitFor
in interfaceCheckpointPlan
-
getTasksToCommitTo
public List<ExecutionVertex> getTasksToCommitTo()
Description copied from interface:CheckpointPlan
Returns tasks that are still running when taking the checkpoint, these need to be sent a message when the checkpoint is confirmed.- Specified by:
getTasksToCommitTo
in interfaceCheckpointPlan
-
getFinishedTasks
public List<Execution> getFinishedTasks()
Description copied from interface:CheckpointPlan
Returns tasks that have already been finished when taking the checkpoint.- Specified by:
getFinishedTasks
in interfaceCheckpointPlan
-
getFullyFinishedJobVertex
public Collection<ExecutionJobVertex> getFullyFinishedJobVertex()
Description copied from interface:CheckpointPlan
Returns the job vertices whose tasks are all finished when taking the checkpoint.- Specified by:
getFullyFinishedJobVertex
in interfaceCheckpointPlan
-
mayHaveFinishedTasks
public boolean mayHaveFinishedTasks()
Description copied from interface:CheckpointPlan
Returns whether we support checkpoints after some tasks finished.- Specified by:
mayHaveFinishedTasks
in interfaceCheckpointPlan
-
reportTaskFinishedOnRestore
public void reportTaskFinishedOnRestore(ExecutionVertex task)
Description copied from interface:FinishedTaskStateProvider
Reports thetask
is finished on restoring.- Specified by:
reportTaskFinishedOnRestore
in interfaceFinishedTaskStateProvider
-
reportTaskHasFinishedOperators
public void reportTaskHasFinishedOperators(ExecutionVertex task)
Description copied from interface:FinishedTaskStateProvider
Reports thetask
has finished all the operators.- Specified by:
reportTaskHasFinishedOperators
in interfaceFinishedTaskStateProvider
-
fulfillFinishedTaskStatus
public void fulfillFinishedTaskStatus(Map<OperatorID,OperatorState> operatorStates)
Description copied from interface:FinishedTaskStateProvider
Fulfills the state for the finished subtasks and operators to indicate they are finished.- Specified by:
fulfillFinishedTaskStatus
in interfaceFinishedTaskStateProvider
-
-