public abstract class CheckpointBarrierHandler extends Object
CheckpointBarrierHandler reacts to checkpoint barrier arriving from the input channels.
Different implementations may either simply track barriers, or block certain inputs on
barriers.| 构造器和说明 |
|---|
CheckpointBarrierHandler(org.apache.flink.runtime.jobgraph.tasks.AbstractInvokable toNotifyOnCheckpoint) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
checkpointSizeLimitExceeded(long maxBufferedBytes) |
abstract long |
getAlignmentDurationNanos() |
abstract long |
getLatestCheckpointId() |
abstract boolean |
isBlocked(int channelIndex)
Checks whether the channel with the given index is blocked.
|
protected void |
notifyAbort(long checkpointId,
org.apache.flink.runtime.checkpoint.CheckpointException cause) |
protected void |
notifyAbortOnCancellationBarrier(long checkpointId) |
protected void |
notifyCheckpoint(org.apache.flink.runtime.io.network.api.CheckpointBarrier checkpointBarrier,
long bufferedBytes,
long alignmentDurationNanos) |
abstract boolean |
processBarrier(org.apache.flink.runtime.io.network.api.CheckpointBarrier receivedBarrier,
int channelIndex,
long bufferedBytes) |
abstract boolean |
processCancellationBarrier(org.apache.flink.runtime.io.network.api.CancelCheckpointMarker cancelBarrier) |
abstract boolean |
processEndOfPartition() |
abstract void |
releaseBlocksAndResetBarriers() |
public CheckpointBarrierHandler(@Nullable org.apache.flink.runtime.jobgraph.tasks.AbstractInvokable toNotifyOnCheckpoint)
public abstract void releaseBlocksAndResetBarriers()
public abstract boolean isBlocked(int channelIndex)
channelIndex - The channel index to check.public abstract boolean processBarrier(org.apache.flink.runtime.io.network.api.CheckpointBarrier receivedBarrier,
int channelIndex,
long bufferedBytes)
throws Exception
Exceptionpublic abstract boolean processCancellationBarrier(org.apache.flink.runtime.io.network.api.CancelCheckpointMarker cancelBarrier)
throws Exception
Exceptionpublic abstract boolean processEndOfPartition()
throws Exception
Exceptionpublic abstract long getLatestCheckpointId()
public abstract long getAlignmentDurationNanos()
public abstract void checkpointSizeLimitExceeded(long maxBufferedBytes)
throws Exception
Exceptionprotected void notifyCheckpoint(org.apache.flink.runtime.io.network.api.CheckpointBarrier checkpointBarrier,
long bufferedBytes,
long alignmentDurationNanos)
throws Exception
Exceptionprotected void notifyAbortOnCancellationBarrier(long checkpointId)
throws Exception
ExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.