Package com.linkedin.davinci.notifier
Interface VeniceNotifier
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
ExceptionCaptorNotifier,IsolatedIngestionNotifier,LeaderFollowerIngestionProgressNotifier,LogNotifier,PushStatusNotifier,RelayNotifier,StateModelIngestionProgressNotifier
Interface for listening to Notifications for Store consumption.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidbatchEndOfIncrementalPushReceived(String kafkaTopic, int partitionId, PubSubPosition position, List<String> historicalIncPushes) default voidcatchUpVersionTopicOffsetLag(String kafkaTopic, int partitionId) default voidclose()The Process is shutting down and clean up the resources associated with the Notifier.default voidcompleted(String kafkaTopic, int partitionId, PubSubPosition position) Consumption is completed for a store and partition.default voidcompleted(String kafkaTopic, int partitionId, PubSubPosition position, String message) default voiddataRecoveryCompleted(String kafkaTopic, int partitionId, PubSubPosition position, String message) default voidendOfIncrementalPushReceived(String kafkaTopic, int partitionId, PubSubPosition position) Consumption is completed for an incremental pushdefault voidendOfIncrementalPushReceived(String kafkaTopic, int partitionId, PubSubPosition position, String message) default voidendOfPushReceived(String kafkaTopic, int partitionId, PubSubPosition position) TheControlMessageType.END_OF_PUSHcontrol message was consumed.default voidendOfPushReceived(String kafkaTopic, int partitionId, PubSubPosition position, String message) default voidReport an error, during the consumption for a Partitions and store.default voidprogress(String kafkaTopic, int partitionId, PubSubPosition position) Periodic progress report of consumption for a store and partition.default voidprogress(String kafkaTopic, int partitionId, PubSubPosition position, String message) default voidquotaNotViolated(String kafkaTopic, int partitionId, PubSubPosition position) Quota is not violated for a store.default voidquotaNotViolated(String kafkaTopic, int partitionId, PubSubPosition position, String message) default voidquotaViolated(String kafkaTopic, int partitionId, PubSubPosition position) Quota is violated for a store.default voidquotaViolated(String kafkaTopic, int partitionId, PubSubPosition position, String message) default voidrestarted(String kafkaTopic, int partitionId, PubSubPosition position) Consumption is restarted from given position for a store and partitiondefault voidrestarted(String kafkaTopic, int partitionId, PubSubPosition position, String message) default voidConsumption is started for a store and partitiondefault voiddefault voidstartOfIncrementalPushReceived(String kafkaTopic, int partitionId, PubSubPosition position) Consumption is started for an incremental pushdefault voidstartOfIncrementalPushReceived(String kafkaTopic, int partitionId, PubSubPosition position, String message) default voidstopped(String kafkaTopic, int partitionId, PubSubPosition position) default voidtopicSwitchReceived(String kafkaTopic, int partitionId, PubSubPosition position) TheControlMessageType.TOPIC_SWITCHcontrol message was consumed.default voidtopicSwitchReceived(String kafkaTopic, int partitionId, PubSubPosition position, String message)
-
Method Details
-
started
Consumption is started for a store and partition -
started
-
restarted
Consumption is restarted from given position for a store and partition -
restarted
-
progress
Periodic progress report of consumption for a store and partition. -
progress
-
endOfPushReceived
TheControlMessageType.END_OF_PUSHcontrol message was consumed.This is only emitted for Hybrid Stores, since Batch-Only Stores report
completed(String, int, PubSubPosition)right away when getting the EOP. -
endOfPushReceived
default void endOfPushReceived(String kafkaTopic, int partitionId, PubSubPosition position, String message) -
topicSwitchReceived
TheControlMessageType.TOPIC_SWITCHcontrol message was consumed.This is only emitted for Hybrid Stores using Leader/Follower model, after the report of
endOfPushReceived(String, int, PubSubPosition)and beforecompleted(String, int, PubSubPosition). -
topicSwitchReceived
default void topicSwitchReceived(String kafkaTopic, int partitionId, PubSubPosition position, String message) -
dataRecoveryCompleted
default void dataRecoveryCompleted(String kafkaTopic, int partitionId, PubSubPosition position, String message) -
startOfIncrementalPushReceived
default void startOfIncrementalPushReceived(String kafkaTopic, int partitionId, PubSubPosition position) Consumption is started for an incremental push -
startOfIncrementalPushReceived
default void startOfIncrementalPushReceived(String kafkaTopic, int partitionId, PubSubPosition position, String message) -
endOfIncrementalPushReceived
default void endOfIncrementalPushReceived(String kafkaTopic, int partitionId, PubSubPosition position) Consumption is completed for an incremental push -
endOfIncrementalPushReceived
default void endOfIncrementalPushReceived(String kafkaTopic, int partitionId, PubSubPosition position, String message) -
batchEndOfIncrementalPushReceived
default void batchEndOfIncrementalPushReceived(String kafkaTopic, int partitionId, PubSubPosition position, List<String> historicalIncPushes) -
catchUpVersionTopicOffsetLag
-
completed
Consumption is completed for a store and partition. -
completed
-
quotaViolated
Quota is violated for a store. -
quotaViolated
default void quotaViolated(String kafkaTopic, int partitionId, PubSubPosition position, String message) -
quotaNotViolated
Quota is not violated for a store. -
quotaNotViolated
default void quotaNotViolated(String kafkaTopic, int partitionId, PubSubPosition position, String message) -
close
default void close()The 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
-
error
Report an error, during the consumption for a Partitions and store. The error may or may not be fatal. -
stopped
-