@Internal public interface SubtaskCheckpointCoordinator extends Closeable
Task
and StreamTask
). Responsibilities:
Modifier and Type | Method and Description |
---|---|
void |
abortCheckpointOnBarrier(long checkpointId,
Throwable cause,
OperatorChain<?,?> operatorChain) |
void |
checkpointState(CheckpointMetaData checkpointMetaData,
CheckpointOptions checkpointOptions,
CheckpointMetrics checkpointMetrics,
OperatorChain<?,?> operatorChain,
java.util.function.Supplier<Boolean> isRunning)
Must be called after
initCheckpoint(long, CheckpointOptions) . |
ChannelStateWriter |
getChannelStateWriter() |
CheckpointStorageWorkerView |
getCheckpointStorage() |
void |
initCheckpoint(long id,
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 initCheckpoint(long id, CheckpointOptions checkpointOptions)
ChannelStateWriter getChannelStateWriter()
CheckpointStorageWorkerView getCheckpointStorage()
void abortCheckpointOnBarrier(long checkpointId, Throwable cause, OperatorChain<?,?> operatorChain) throws IOException
IOException
void checkpointState(CheckpointMetaData checkpointMetaData, CheckpointOptions checkpointOptions, CheckpointMetrics checkpointMetrics, OperatorChain<?,?> operatorChain, java.util.function.Supplier<Boolean> isRunning) throws Exception
initCheckpoint(long, CheckpointOptions)
.Exception
void 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.Exception
void 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.Exception
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.