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 voidfulfillFinishedTaskStatus(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.booleanmayHaveFinishedTasks()Returns whether we support checkpoints after some tasks finished.voidreportTaskFinishedOnRestore(ExecutionVertex task)Reports thetaskis finished on restoring.voidreportTaskHasFinishedOperators(ExecutionVertex task)Reports thetaskhas finished all the operators.
-
-
-
Method Detail
-
getTasksToTrigger
public List<Execution> getTasksToTrigger()
Description copied from interface:CheckpointPlanReturns the tasks who need to be sent a message when a checkpoint is started.- Specified by:
getTasksToTriggerin interfaceCheckpointPlan
-
getTasksToWaitFor
public List<Execution> getTasksToWaitFor()
Description copied from interface:CheckpointPlanReturns tasks who need to acknowledge a checkpoint before it succeeds.- Specified by:
getTasksToWaitForin interfaceCheckpointPlan
-
getTasksToCommitTo
public List<ExecutionVertex> getTasksToCommitTo()
Description copied from interface:CheckpointPlanReturns tasks that are still running when taking the checkpoint, these need to be sent a message when the checkpoint is confirmed.- Specified by:
getTasksToCommitToin interfaceCheckpointPlan
-
getFinishedTasks
public List<Execution> getFinishedTasks()
Description copied from interface:CheckpointPlanReturns tasks that have already been finished when taking the checkpoint.- Specified by:
getFinishedTasksin interfaceCheckpointPlan
-
getFullyFinishedJobVertex
public Collection<ExecutionJobVertex> getFullyFinishedJobVertex()
Description copied from interface:CheckpointPlanReturns the job vertices whose tasks are all finished when taking the checkpoint.- Specified by:
getFullyFinishedJobVertexin interfaceCheckpointPlan
-
mayHaveFinishedTasks
public boolean mayHaveFinishedTasks()
Description copied from interface:CheckpointPlanReturns whether we support checkpoints after some tasks finished.- Specified by:
mayHaveFinishedTasksin interfaceCheckpointPlan
-
reportTaskFinishedOnRestore
public void reportTaskFinishedOnRestore(ExecutionVertex task)
Description copied from interface:FinishedTaskStateProviderReports thetaskis finished on restoring.- Specified by:
reportTaskFinishedOnRestorein interfaceFinishedTaskStateProvider
-
reportTaskHasFinishedOperators
public void reportTaskHasFinishedOperators(ExecutionVertex task)
Description copied from interface:FinishedTaskStateProviderReports thetaskhas finished all the operators.- Specified by:
reportTaskHasFinishedOperatorsin interfaceFinishedTaskStateProvider
-
fulfillFinishedTaskStatus
public void fulfillFinishedTaskStatus(Map<OperatorID,OperatorState> operatorStates)
Description copied from interface:FinishedTaskStateProviderFulfills the state for the finished subtasks and operators to indicate they are finished.- Specified by:
fulfillFinishedTaskStatusin interfaceFinishedTaskStateProvider
-
-