Package com.linkedin.davinci.notifier
Class RelayNotifier
java.lang.Object
com.linkedin.davinci.notifier.RelayNotifier
- All Implemented Interfaces:
VeniceNotifier,Closeable,AutoCloseable
RelayNotifier is a VeniceNotifier which takes in a target VeniceNotifier and forward all actions to the target notifier.
This RelayNotifier can served as the base implementation and other notifier implementation can override the method
implementation to achieve customized behaviors.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompleted(String kafkaTopic, int partitionId, PubSubPosition position, String message) voiddataRecoveryCompleted(String kafkaTopic, int partitionId, PubSubPosition position, String message) voidendOfIncrementalPushReceived(String kafkaTopic, int partitionId, PubSubPosition position, String incrementalPushVersion) voidendOfPushReceived(String kafkaTopic, int partitionId, PubSubPosition position, String message) voidReport an error, during the consumption for a Partitions and store.voidquotaNotViolated(String kafkaTopic, int partitionId, PubSubPosition position, String message) voidquotaViolated(String kafkaTopic, int partitionId, PubSubPosition position, String message) voidrestarted(String kafkaTopic, int partitionId, PubSubPosition position, String message) voidvoidstartOfIncrementalPushReceived(String kafkaTopic, int partitionId, PubSubPosition position, String incrementalPushVersion) voidstopped(String kafkaTopic, int partitionId, PubSubPosition position) voidtopicSwitchReceived(String kafkaTopic, 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
batchEndOfIncrementalPushReceived, catchUpVersionTopicOffsetLag, close, completed, endOfIncrementalPushReceived, endOfPushReceived, progress, progress, quotaNotViolated, quotaViolated, restarted, started, startOfIncrementalPushReceived, topicSwitchReceived
-
Constructor Details
-
RelayNotifier
-
-
Method Details
-
completed
- Specified by:
completedin 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
-
started
- Specified by:
startedin interfaceVeniceNotifier
-
restarted
- Specified by:
restartedin interfaceVeniceNotifier
-
endOfPushReceived
public void endOfPushReceived(String kafkaTopic, int partitionId, PubSubPosition position, String message) - Specified by:
endOfPushReceivedin interfaceVeniceNotifier
-
startOfIncrementalPushReceived
public void startOfIncrementalPushReceived(String kafkaTopic, int partitionId, PubSubPosition position, String incrementalPushVersion) - Specified by:
startOfIncrementalPushReceivedin interfaceVeniceNotifier
-
endOfIncrementalPushReceived
public void endOfIncrementalPushReceived(String kafkaTopic, int partitionId, PubSubPosition position, String incrementalPushVersion) - Specified by:
endOfIncrementalPushReceivedin interfaceVeniceNotifier
-
topicSwitchReceived
public void topicSwitchReceived(String kafkaTopic, 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
-
stopped
- Specified by:
stoppedin interfaceVeniceNotifier
-
quotaViolated
public void quotaViolated(String kafkaTopic, int partitionId, PubSubPosition position, String message) - Specified by:
quotaViolatedin interfaceVeniceNotifier
-
quotaNotViolated
public void quotaNotViolated(String kafkaTopic, int partitionId, PubSubPosition position, String message) - Specified by:
quotaNotViolatedin interfaceVeniceNotifier
-