Class DaVinciPushStatusUpdateTask


  • public class DaVinciPushStatusUpdateTask
    extends java.lang.Object
    This is a scheduler for sending batching push status in DaVinci.
    • Constructor Detail

      • DaVinciPushStatusUpdateTask

        public DaVinciPushStatusUpdateTask​(Version version,
                                           long daVinciPushStatusCheckIntervalInMs,
                                           PushStatusStoreWriter pushStatusStoreWriter,
                                           java.util.function.Supplier<java.lang.Boolean> areAllPartitionFuturesCompletedSuccessfully)
    • Method Detail

      • isBatchPushStartSignalSent

        public boolean isBatchPushStartSignalSent()
      • isBatchPushEndSignalSent

        public boolean isBatchPushEndSignalSent()
      • batchPushStartSignalSent

        public void batchPushStartSignalSent()
      • batchPushEndSignalSent

        public void batchPushEndSignalSent()
      • updatePartitionStatus

        public void updatePartitionStatus​(int partition,
                                          ExecutionStatus status)
      • getTrackedPartitions

        public java.util.Set<java.lang.Integer> getTrackedPartitions()
        Get the partition id set that is being tracked
      • areAllPartitionsOnSameTerminalStatus

        public boolean areAllPartitionsOnSameTerminalStatus​(ExecutionStatus status)
      • isAnyPartitionOnErrorStatus

        public boolean isAnyPartitionOnErrorStatus()
      • start

        public void start()
      • shutdown

        public void shutdown()