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,
                                          java.util.Optional<java.lang.String> incrementalPushVersion)
      • getTrackedPartitions

        public java.util.Set<java.lang.Integer> getTrackedPartitions​(java.util.Optional<java.lang.String> incrementalPushVersion)
      • areAllPartitionsOnSameTerminalStatus

        public boolean areAllPartitionsOnSameTerminalStatus​(ExecutionStatus status,
                                                            java.util.Optional<java.lang.String> incrementalPushVersion)
      • isAnyPartitionOnErrorStatus

        public boolean isAnyPartitionOnErrorStatus​(java.util.Optional<java.lang.String> incrementalPushVersion)
      • start

        public void start()
      • shutdown

        public void shutdown()