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 void
batchEndOfIncrementalPushReceived
(String kafkaTopic, int partitionId, PubSubPosition position, List<String> historicalIncPushes) default void
catchUpVersionTopicOffsetLag
(String kafkaTopic, int partitionId) default void
close()
The Process is shutting down and clean up the resources associated with the Notifier.default void
completed
(String kafkaTopic, int partitionId, PubSubPosition position) Consumption is completed for a store and partition.default void
completed
(String kafkaTopic, int partitionId, PubSubPosition position, String message) default void
dataRecoveryCompleted
(String kafkaTopic, int partitionId, PubSubPosition position, String message) default void
endOfIncrementalPushReceived
(String kafkaTopic, int partitionId, PubSubPosition position) Consumption is completed for an incremental pushdefault void
endOfIncrementalPushReceived
(String kafkaTopic, int partitionId, PubSubPosition position, String message) default void
endOfPushReceived
(String kafkaTopic, int partitionId, PubSubPosition position) TheControlMessageType.END_OF_PUSH
control message was consumed.default void
endOfPushReceived
(String kafkaTopic, int partitionId, PubSubPosition position, String message) default void
Report an error, during the consumption for a Partitions and store.default void
progress
(String kafkaTopic, int partitionId, PubSubPosition position) Periodic progress report of consumption for a store and partition.default void
progress
(String kafkaTopic, int partitionId, PubSubPosition position, String message) default void
quotaNotViolated
(String kafkaTopic, int partitionId, PubSubPosition position) Quota is not violated for a store.default void
quotaNotViolated
(String kafkaTopic, int partitionId, PubSubPosition position, String message) default void
quotaViolated
(String kafkaTopic, int partitionId, PubSubPosition position) Quota is violated for a store.default void
quotaViolated
(String kafkaTopic, int partitionId, PubSubPosition position, String message) default void
restarted
(String kafkaTopic, int partitionId, PubSubPosition position) Consumption is restarted from given position for a store and partitiondefault void
restarted
(String kafkaTopic, int partitionId, PubSubPosition position, String message) default void
Consumption is started for a store and partitiondefault void
default void
startOfIncrementalPushReceived
(String kafkaTopic, int partitionId, PubSubPosition position) Consumption is started for an incremental pushdefault void
startOfIncrementalPushReceived
(String kafkaTopic, int partitionId, PubSubPosition position, String message) default void
stopped
(String kafkaTopic, int partitionId, PubSubPosition position) default void
topicSwitchReceived
(String kafkaTopic, int partitionId, PubSubPosition position) TheControlMessageType.TOPIC_SWITCH
control message was consumed.default void
topicSwitchReceived
(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_PUSH
control 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_SWITCH
control 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
error
Report an error, during the consumption for a Partitions and store. The error may or may not be fatal. -
stopped
-