@Internal public interface SubtaskCheckpointCoordinator extends Closeable
Task and StreamTask). Responsibilities:
| Modifier and Type | Method and Description |
|---|---|
void |
abortCheckpointOnBarrier(long checkpointId,
org.apache.flink.runtime.checkpoint.CheckpointException cause,
OperatorChain<?,?> operatorChain) |
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,
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 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,
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.ExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.