public class DefaultCheckpointPlan extends Object implements CheckpointPlan
CheckpointPlan.| 限定符和类型 | 方法和说明 |
|---|---|
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 the
task is finished on restoring. |
void |
reportTaskHasFinishedOperators(ExecutionVertex task)
Reports the
task has finished all the operators. |
public List<Execution> getTasksToTrigger()
CheckpointPlangetTasksToTrigger 在接口中 CheckpointPlanpublic List<Execution> getTasksToWaitFor()
CheckpointPlangetTasksToWaitFor 在接口中 CheckpointPlanpublic List<ExecutionVertex> getTasksToCommitTo()
CheckpointPlangetTasksToCommitTo 在接口中 CheckpointPlanpublic List<Execution> getFinishedTasks()
CheckpointPlangetFinishedTasks 在接口中 CheckpointPlanpublic Collection<ExecutionJobVertex> getFullyFinishedJobVertex()
CheckpointPlangetFullyFinishedJobVertex 在接口中 CheckpointPlanpublic boolean mayHaveFinishedTasks()
CheckpointPlanmayHaveFinishedTasks 在接口中 CheckpointPlanpublic void reportTaskFinishedOnRestore(ExecutionVertex task)
FinishedTaskStateProvidertask is finished on restoring.public void reportTaskHasFinishedOperators(ExecutionVertex task)
FinishedTaskStateProvidertask has finished all the operators.public void fulfillFinishedTaskStatus(Map<OperatorID,OperatorState> operatorStates)
FinishedTaskStateProviderCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.