Package com.linkedin.davinci.notifier
Class PushStatusNotifier
java.lang.Object
com.linkedin.davinci.notifier.PushStatusNotifier
- All Implemented Interfaces:
VeniceNotifier,Closeable,AutoCloseable
Notifies both OfflinePushStatus and Helix Customized View
-
Constructor Summary
ConstructorsConstructorDescriptionPushStatusNotifier(OfflinePushAccessor offlinePushAccessor, HelixPartitionStatusAccessor helixPartitionStatusAccessor, PushStatusStoreWriter pushStatusStoreWriter, ReadOnlyStoreRepository storeRepository, String instanceId, VeniceServerConfig.IncrementalPushStatusWriteMode incrementalPushStatusWriteMode) -
Method Summary
Modifier and TypeMethodDescriptionvoidbatchEndOfIncrementalPushReceived(String topic, int partitionId, PubSubPosition position, List<String> pendingReportIncPushVersionList) voidclose()The Process is shutting down and clean up the resources associated with the Notifier.voidcompleted(String topic, int partitionId, PubSubPosition position, String message) voiddataRecoveryCompleted(String kafkaTopic, int partitionId, PubSubPosition position, String message) voidendOfIncrementalPushReceived(String topic, int partitionId, PubSubPosition position, String message) voidendOfPushReceived(String topic, int partitionId, PubSubPosition position, String message) voidReport an error, during the consumption for a Partitions and store.voidprogress(String topic, int partitionId, PubSubPosition position, String message) voidquotaNotViolated(String topic, int partitionId, PubSubPosition position, String message) voidquotaViolated(String topic, int partitionId, PubSubPosition position, String message) voidrestarted(String topic, int partitionId, PubSubPosition position, String message) voidvoidstartOfIncrementalPushReceived(String topic, int partitionId, PubSubPosition position, String message) voidtopicSwitchReceived(String topic, int partitionId, PubSubPosition position, String message) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.linkedin.davinci.notifier.VeniceNotifier
catchUpVersionTopicOffsetLag, completed, endOfIncrementalPushReceived, endOfPushReceived, progress, quotaNotViolated, quotaViolated, restarted, started, startOfIncrementalPushReceived, stopped, topicSwitchReceived
-
Constructor Details
-
PushStatusNotifier
public PushStatusNotifier(OfflinePushAccessor offlinePushAccessor, HelixPartitionStatusAccessor helixPartitionStatusAccessor, PushStatusStoreWriter pushStatusStoreWriter, ReadOnlyStoreRepository storeRepository, String instanceId, VeniceServerConfig.IncrementalPushStatusWriteMode incrementalPushStatusWriteMode)
-
-
Method Details
-
started
- Specified by:
startedin interfaceVeniceNotifier
-
restarted
- Specified by:
restartedin interfaceVeniceNotifier
-
completed
- Specified by:
completedin interfaceVeniceNotifier
-
quotaViolated
- Specified by:
quotaViolatedin interfaceVeniceNotifier
-
quotaNotViolated
public void quotaNotViolated(String topic, int partitionId, PubSubPosition position, String message) - Specified by:
quotaNotViolatedin interfaceVeniceNotifier
-
progress
- Specified by:
progressin interfaceVeniceNotifier
-
endOfPushReceived
public void endOfPushReceived(String topic, int partitionId, PubSubPosition position, String message) - Specified by:
endOfPushReceivedin interfaceVeniceNotifier
-
topicSwitchReceived
public void topicSwitchReceived(String topic, int partitionId, PubSubPosition position, String message) - Specified by:
topicSwitchReceivedin interfaceVeniceNotifier
-
dataRecoveryCompleted
public void dataRecoveryCompleted(String kafkaTopic, int partitionId, PubSubPosition position, String message) - Specified by:
dataRecoveryCompletedin interfaceVeniceNotifier
-
startOfIncrementalPushReceived
public void startOfIncrementalPushReceived(String topic, int partitionId, PubSubPosition position, String message) - Specified by:
startOfIncrementalPushReceivedin interfaceVeniceNotifier
-
endOfIncrementalPushReceived
public void endOfIncrementalPushReceived(String topic, int partitionId, PubSubPosition position, String message) - Specified by:
endOfIncrementalPushReceivedin interfaceVeniceNotifier
-
batchEndOfIncrementalPushReceived
public void batchEndOfIncrementalPushReceived(String topic, int partitionId, PubSubPosition position, List<String> pendingReportIncPushVersionList) - Specified by:
batchEndOfIncrementalPushReceivedin interfaceVeniceNotifier
-
close
public void close()Description copied from interface:VeniceNotifierThe Process is shutting down and clean up the resources associated with the Notifier. N.B. When implementing the method, make it idempotent.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceVeniceNotifier
-
error
Description copied from interface:VeniceNotifierReport an error, during the consumption for a Partitions and store. The error may or may not be fatal.- Specified by:
errorin interfaceVeniceNotifier
-