@Internal public interface SubtaskCheckpointCoordinator extends Closeable
Task and StreamTask). Responsibilities:
| 限定符和类型 | 方法和说明 |
|---|---|
void |
abortCheckpointOnBarrier(long checkpointId,
org.apache.flink.runtime.checkpoint.CheckpointException cause,
OperatorChain<?,?> operatorChain) |
void |
cancel()
Cancel all resources.
|
void |
checkpointState(org.apache.flink.runtime.checkpoint.CheckpointMetaData checkpointMetaData,
org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions,
org.apache.flink.runtime.checkpoint.CheckpointMetricsBuilder checkpointMetrics,
OperatorChain<?,?> operatorChain,
boolean isTaskFinished,
java.util.function.Supplier<Boolean> isRunning)
Must be called after
initInputsCheckpoint(long, CheckpointOptions). |
org.apache.flink.runtime.checkpoint.channel.ChannelStateWriter |
getChannelStateWriter() |
org.apache.flink.runtime.state.CheckpointStorageWorkerView |
getCheckpointStorage() |
void |
initInputsCheckpoint(long id,
org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions)
Initialize new checkpoint.
|
void |
notifyCheckpointAborted(long checkpointId,
OperatorChain<?,?> operatorChain,
java.util.function.Supplier<Boolean> isRunning)
Notified on the task side once a distributed checkpoint has been aborted.
|
void |
notifyCheckpointComplete(long checkpointId,
OperatorChain<?,?> operatorChain,
java.util.function.Supplier<Boolean> isRunning)
Notified on the task side once a distributed checkpoint has been completed.
|
void |
notifyCheckpointSubsumed(long checkpointId,
OperatorChain<?,?> operatorChain,
java.util.function.Supplier<Boolean> isRunning)
Notified on the task side once a distributed checkpoint has been subsumed.
|
void |
waitForPendingCheckpoints()
Waits for all the pending checkpoints to finish their asynchronous step.
|
void initInputsCheckpoint(long id,
org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions)
throws org.apache.flink.runtime.checkpoint.CheckpointException
org.apache.flink.runtime.checkpoint.CheckpointExceptionorg.apache.flink.runtime.checkpoint.channel.ChannelStateWriter getChannelStateWriter()
org.apache.flink.runtime.state.CheckpointStorageWorkerView getCheckpointStorage()
void abortCheckpointOnBarrier(long checkpointId,
org.apache.flink.runtime.checkpoint.CheckpointException cause,
OperatorChain<?,?> operatorChain)
throws IOException
IOExceptionvoid checkpointState(org.apache.flink.runtime.checkpoint.CheckpointMetaData checkpointMetaData,
org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions,
org.apache.flink.runtime.checkpoint.CheckpointMetricsBuilder checkpointMetrics,
OperatorChain<?,?> operatorChain,
boolean isTaskFinished,
java.util.function.Supplier<Boolean> isRunning)
throws Exception
initInputsCheckpoint(long, CheckpointOptions).Exceptionvoid notifyCheckpointComplete(long checkpointId,
OperatorChain<?,?> operatorChain,
java.util.function.Supplier<Boolean> isRunning)
throws Exception
checkpointId - The checkpoint id to notify as been completed.operatorChain - The chain of operators executed by the task.isRunning - Whether the task is running.Exceptionvoid notifyCheckpointAborted(long checkpointId,
OperatorChain<?,?> operatorChain,
java.util.function.Supplier<Boolean> isRunning)
throws Exception
checkpointId - The checkpoint id to notify as been completed.operatorChain - The chain of operators executed by the task.isRunning - Whether the task is running.Exceptionvoid notifyCheckpointSubsumed(long checkpointId,
OperatorChain<?,?> operatorChain,
java.util.function.Supplier<Boolean> isRunning)
throws Exception
checkpointId - The checkpoint id to notify as been subsumed.operatorChain - The chain of operators executed by the task.isRunning - Whether the task is running.Exceptionvoid waitForPendingCheckpoints()
throws Exception
Exceptionvoid cancel()
throws IOException
IOExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.