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, long offset, 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
Consumption is completed for a store and partition.default void
default void
dataRecoveryCompleted
(String kafkaTopic, int partitionId, long offset, String message) default void
endOfIncrementalPushReceived
(String kafkaTopic, int partitionId, long offset) Consumption is completed for an incremental pushdefault void
endOfIncrementalPushReceived
(String kafkaTopic, int partitionId, long offset, String message) default void
endOfPushReceived
(String kafkaTopic, int partitionId, long offset) TheControlMessageType.END_OF_PUSH
control message was consumed.default void
endOfPushReceived
(String kafkaTopic, int partitionId, long offset, String message) default void
Report an error, during the consumption for a Partitions and store.default void
Periodic progress report of consumption for a store and partition.default void
default void
quotaNotViolated
(String kafkaTopic, int partitionId, long offset) Quota is not violated for a store.default void
quotaNotViolated
(String kafkaTopic, int partitionId, long offset, String message) default void
quotaViolated
(String kafkaTopic, int partitionId, long offset) Quota is violated for a store.default void
quotaViolated
(String kafkaTopic, int partitionId, long offset, String message) default void
Consumption is restarted from given offset for a store and partitiondefault void
default void
Consumption is started for a store and partitiondefault void
default void
startOfIncrementalPushReceived
(String kafkaTopic, int partitionId, long offset) Consumption is started for an incremental pushdefault void
startOfIncrementalPushReceived
(String kafkaTopic, int partitionId, long offset, String message) default void
default void
topicSwitchReceived
(String kafkaTopic, int partitionId, long offset) TheControlMessageType.TOPIC_SWITCH
control message was consumed.default void
topicSwitchReceived
(String kafkaTopic, int partitionId, long offset, String message)
-
Method Details
-
started
Consumption is started for a store and partition -
started
-
restarted
Consumption is restarted from given offset 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, long)
right away when getting the EOP. -
endOfPushReceived
-
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, long)
and beforecompleted(String, int, long)
. -
topicSwitchReceived
-
dataRecoveryCompleted
-
startOfIncrementalPushReceived
Consumption is started for an incremental push -
startOfIncrementalPushReceived
-
endOfIncrementalPushReceived
Consumption is completed for an incremental push -
endOfIncrementalPushReceived
-
batchEndOfIncrementalPushReceived
-
catchUpVersionTopicOffsetLag
-
completed
Consumption is completed for a store and partition. -
completed
-
quotaViolated
Quota is violated for a store. -
quotaViolated
-
quotaNotViolated
Quota is not violated for a store. -
quotaNotViolated
-
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
-