Class CheckpointBarrierHandler

    • Constructor Detail

      • CheckpointBarrierHandler

        public CheckpointBarrierHandler​(CheckpointableTask toNotifyOnCheckpoint,
                                        Clock clock,
                                        boolean enableCheckpointAfterTasksFinished)
    • Method Detail

      • getLatestCheckpointId

        public abstract long getLatestCheckpointId()
      • getAlignmentDurationNanos

        public long getAlignmentDurationNanos()
      • getCheckpointStartDelayNanos

        public long getCheckpointStartDelayNanos()
      • getAllBarriersReceivedFuture

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

        protected void notifyAbortOnCancellationBarrier​(long checkpointId)
                                                 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 Clock getClock()