Package com.linkedin.davinci.notifier
Class DaVinciPushStatusUpdateTask
java.lang.Object
com.linkedin.davinci.notifier.DaVinciPushStatusUpdateTask
This is a scheduler for sending batching push status in DaVinci.
-
Constructor Summary
ConstructorDescriptionDaVinciPushStatusUpdateTask
(Version version, long daVinciPushStatusCheckIntervalInMs, PushStatusStoreWriter pushStatusStoreWriter, Supplier<Boolean> areAllPartitionFuturesCompletedSuccessfully) -
Method Summary
Modifier and TypeMethodDescriptionboolean
areAllPartitionsOnSameTerminalStatus
(ExecutionStatus status, Optional<String> incrementalPushVersion) void
void
getTrackedPartitions
(Optional<String> incrementalPushVersion) boolean
isAnyPartitionOnErrorStatus
(Optional<String> incrementalPushVersion) boolean
boolean
void
shutdown()
void
start()
void
updatePartitionStatus
(int partition, ExecutionStatus status, Optional<String> incrementalPushVersion)
-
Constructor Details
-
DaVinciPushStatusUpdateTask
public DaVinciPushStatusUpdateTask(Version version, long daVinciPushStatusCheckIntervalInMs, PushStatusStoreWriter pushStatusStoreWriter, Supplier<Boolean> areAllPartitionFuturesCompletedSuccessfully)
-
-
Method Details
-
isBatchPushStartSignalSent
public boolean isBatchPushStartSignalSent() -
isBatchPushEndSignalSent
public boolean isBatchPushEndSignalSent() -
batchPushStartSignalSent
public void batchPushStartSignalSent() -
batchPushEndSignalSent
public void batchPushEndSignalSent() -
updatePartitionStatus
public void updatePartitionStatus(int partition, ExecutionStatus status, Optional<String> incrementalPushVersion) -
getTrackedPartitions
-
areAllPartitionsOnSameTerminalStatus
public boolean areAllPartitionsOnSameTerminalStatus(ExecutionStatus status, Optional<String> incrementalPushVersion) -
isAnyPartitionOnErrorStatus
-
start
public void start() -
shutdown
public void shutdown()
-