public abstract class CheckpointBarrierHandler extends Object implements Closeable
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.CheckpointableTask toNotifyOnCheckpoint,
org.apache.flink.util.clock.Clock clock,
boolean enableCheckpointAfterTasksFinished) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addProcessedBytes(int bytes) |
void |
close() |
long |
getAlignmentDurationNanos() |
CompletableFuture<Void> |
getAllBarriersReceivedFuture(long checkpointId) |
long |
getCheckpointStartDelayNanos() |
protected org.apache.flink.util.clock.Clock |
getClock() |
abstract long |
getLatestCheckpointId() |
protected abstract boolean |
isCheckpointPending() |
protected void |
markAlignmentEnd() |
protected void |
markAlignmentEnd(long alignmentDuration) |
protected void |
markAlignmentStart(long checkpointId,
long checkpointCreationTimestamp) |
protected void |
markAlignmentStartAndEnd(long checkpointId,
long checkpointCreationTimestamp) |
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) |
abstract void |
processBarrier(org.apache.flink.runtime.io.network.api.CheckpointBarrier receivedBarrier,
org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo,
boolean isRpcTriggered) |
abstract void |
processBarrierAnnouncement(org.apache.flink.runtime.io.network.api.CheckpointBarrier announcedBarrier,
int sequenceNumber,
org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo) |
abstract void |
processCancellationBarrier(org.apache.flink.runtime.io.network.api.CancelCheckpointMarker cancelBarrier,
org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo) |
abstract void |
processEndOfPartition(org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo) |
protected void |
resetAlignment() |
public CheckpointBarrierHandler(org.apache.flink.runtime.jobgraph.tasks.CheckpointableTask toNotifyOnCheckpoint,
org.apache.flink.util.clock.Clock clock,
boolean enableCheckpointAfterTasksFinished)
public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionpublic abstract void processBarrier(org.apache.flink.runtime.io.network.api.CheckpointBarrier receivedBarrier,
org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo,
boolean isRpcTriggered)
throws IOException
IOExceptionpublic abstract void processBarrierAnnouncement(org.apache.flink.runtime.io.network.api.CheckpointBarrier announcedBarrier,
int sequenceNumber,
org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo)
throws IOException
IOExceptionpublic abstract void processCancellationBarrier(org.apache.flink.runtime.io.network.api.CancelCheckpointMarker cancelBarrier,
org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo)
throws IOException
IOExceptionpublic abstract void processEndOfPartition(org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo)
throws IOException
IOExceptionpublic abstract long getLatestCheckpointId()
public long getAlignmentDurationNanos()
public long getCheckpointStartDelayNanos()
public CompletableFuture<Void> getAllBarriersReceivedFuture(long checkpointId)
protected void notifyCheckpoint(org.apache.flink.runtime.io.network.api.CheckpointBarrier checkpointBarrier)
throws IOException
IOExceptionprotected void notifyAbortOnCancellationBarrier(long checkpointId)
throws IOException
IOExceptionprotected void notifyAbort(long checkpointId,
org.apache.flink.runtime.checkpoint.CheckpointException cause)
throws IOException
IOExceptionprotected void markAlignmentStartAndEnd(long checkpointId,
long checkpointCreationTimestamp)
protected void markAlignmentStart(long checkpointId,
long checkpointCreationTimestamp)
protected void markAlignmentEnd()
protected void markAlignmentEnd(long alignmentDuration)
protected void resetAlignment()
protected abstract boolean isCheckpointPending()
public void addProcessedBytes(int bytes)
protected final org.apache.flink.util.clock.Clock getClock()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.