Class CheckpointBarrierHandler

    • Constructor Detail

      • CheckpointBarrierHandler

        public CheckpointBarrierHandler​(org.apache.flink.runtime.jobgraph.tasks.CheckpointableTask toNotifyOnCheckpoint,
                                        org.apache.flink.util.clock.Clock clock,
                                        boolean enableCheckpointAfterTasksFinished)
    • Method Detail

      • processBarrier

        public abstract void processBarrier​(org.apache.flink.runtime.io.network.api.CheckpointBarrier receivedBarrier,
                                            org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo,
                                            boolean isRpcTriggered)
                                     throws IOException
        Throws:
        IOException
      • processBarrierAnnouncement

        public abstract void processBarrierAnnouncement​(org.apache.flink.runtime.io.network.api.CheckpointBarrier announcedBarrier,
                                                        int sequenceNumber,
                                                        org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo)
                                                 throws IOException
        Throws:
        IOException
      • processCancellationBarrier

        public abstract void processCancellationBarrier​(org.apache.flink.runtime.io.network.api.CancelCheckpointMarker cancelBarrier,
                                                        org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo)
                                                 throws IOException
        Throws:
        IOException
      • processEndOfPartition

        public abstract void processEndOfPartition​(org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo)
                                            throws IOException
        Throws:
        IOException
      • getLatestCheckpointId

        public abstract long getLatestCheckpointId()
      • getAlignmentDurationNanos

        public long getAlignmentDurationNanos()
      • getCheckpointStartDelayNanos

        public long getCheckpointStartDelayNanos()
      • getAllBarriersReceivedFuture

        public CompletableFuture<Void> getAllBarriersReceivedFuture​(long checkpointId)
      • notifyCheckpoint

        protected void notifyCheckpoint​(org.apache.flink.runtime.io.network.api.CheckpointBarrier checkpointBarrier)
                                 throws IOException
        Throws:
        IOException
      • notifyAbortOnCancellationBarrier

        protected void notifyAbortOnCancellationBarrier​(long checkpointId)
                                                 throws IOException
        Throws:
        IOException
      • notifyAbort

        protected void notifyAbort​(long checkpointId,
                                   org.apache.flink.runtime.checkpoint.CheckpointException cause)
                            throws IOException
        Throws:
        IOException
      • markAlignmentStartAndEnd

        protected void markAlignmentStartAndEnd​(long checkpointId,
                                                long checkpointCreationTimestamp)
      • markAlignmentStart

        protected void markAlignmentStart​(long checkpointId,
                                          long checkpointCreationTimestamp)
      • markAlignmentEnd

        protected void markAlignmentEnd()
      • markAlignmentEnd

        protected void markAlignmentEnd​(long alignmentDuration)
      • resetAlignment

        protected void resetAlignment()
      • isCheckpointPending

        protected abstract boolean isCheckpointPending()
      • addProcessedBytes

        public void addProcessedBytes​(int bytes)
      • getClock

        protected final org.apache.flink.util.clock.Clock getClock()