Class DefaultCheckpointPlan
java.lang.Object
org.apache.flink.runtime.checkpoint.DefaultCheckpointPlan
- All Implemented Interfaces:
CheckpointPlan,FinishedTaskStateProvider
The default implementation of he
CheckpointPlan.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.runtime.checkpoint.FinishedTaskStateProvider
FinishedTaskStateProvider.PartialFinishingNotSupportedByStateException -
Method Summary
Modifier and TypeMethodDescriptionvoidfulfillFinishedTaskStatus(Map<OperatorID, OperatorState> operatorStates) Fulfills the state for the finished subtasks and operators to indicate they are finished.Returns tasks that have already been finished when taking the checkpoint.Returns the job vertices whose tasks are all finished when taking the checkpoint.Returns tasks that are still running when taking the checkpoint, these need to be sent a message when the checkpoint is confirmed.Returns the tasks who need to be sent a message when a checkpoint is started.Returns tasks who need to acknowledge a checkpoint before it succeeds.booleanReturns whether we support checkpoints after some tasks finished.voidReports thetaskis finished on restoring.voidReports thetaskhas finished all the operators.
-
Method Details
-
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
Description copied from interface:CheckpointPlanReturns tasks who need to acknowledge a checkpoint before it succeeds.- Specified by:
getTasksToWaitForin interfaceCheckpointPlan
-
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
Description copied from interface:CheckpointPlanReturns tasks that have already been finished when taking the checkpoint.- Specified by:
getFinishedTasksin interfaceCheckpointPlan
-
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
Description copied from interface:FinishedTaskStateProviderReports thetaskis finished on restoring.- Specified by:
reportTaskFinishedOnRestorein interfaceFinishedTaskStateProvider
-
reportTaskHasFinishedOperators
Description copied from interface:FinishedTaskStateProviderReports thetaskhas finished all the operators.- Specified by:
reportTaskHasFinishedOperatorsin interfaceFinishedTaskStateProvider
-
fulfillFinishedTaskStatus
Description copied from interface:FinishedTaskStateProviderFulfills the state for the finished subtasks and operators to indicate they are finished.- Specified by:
fulfillFinishedTaskStatusin interfaceFinishedTaskStateProvider
-