Package com.linkedin.davinci.notifier
Class LogNotifier
java.lang.Object
com.linkedin.davinci.notifier.LogNotifier
- All Implemented Interfaces:
VeniceNotifier,Closeable,AutoCloseable
- Direct Known Subclasses:
ExceptionCaptorNotifier
Logs the Notification received.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcatchUpVersionTopicOffsetLag(String pubSubTopic, int partitionId) voidclose()The Process is shutting down and clean up the resources associated with the Notifier.voidcompleted(String pubSubTopic, int partitionId, PubSubPosition position, String message) voiddataRecoveryCompleted(String pubSubTopic, int partitionId, PubSubPosition position, String message) voidendOfIncrementalPushReceived(String pubSubTopic, int partitionId, PubSubPosition position, String message) voidendOfPushReceived(String pubSubTopic, int partitionId, PubSubPosition position, String message) voidReport an error, during the consumption for a Partitions and store.voidprogress(String pubSubTopic, int partitionId, PubSubPosition position, String message) voidrestarted(String pubSubTopic, int partitionId, PubSubPosition position, String message) voidvoidstartOfIncrementalPushReceived(String pubSubTopic, int partitionId, PubSubPosition position, String message) voidstopped(String pubSubTopic, int partitionId, PubSubPosition position) voidtopicSwitchReceived(String pubSubTopic, 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, completed, endOfIncrementalPushReceived, endOfPushReceived, progress, quotaNotViolated, quotaNotViolated, quotaViolated, quotaViolated, restarted, started, startOfIncrementalPushReceived, topicSwitchReceived
-
Constructor Details
-
LogNotifier
public LogNotifier()
-
-
Method Details
-
started
- Specified by:
startedin interfaceVeniceNotifier
-
restarted
- Specified by:
restartedin interfaceVeniceNotifier
-
completed
- Specified by:
completedin interfaceVeniceNotifier
-
progress
- Specified by:
progressin interfaceVeniceNotifier
-
endOfPushReceived
public void endOfPushReceived(String pubSubTopic, int partitionId, PubSubPosition position, String message) - Specified by:
endOfPushReceivedin interfaceVeniceNotifier
-
topicSwitchReceived
public void topicSwitchReceived(String pubSubTopic, int partitionId, PubSubPosition position, String message) - Specified by:
topicSwitchReceivedin interfaceVeniceNotifier
-
dataRecoveryCompleted
public void dataRecoveryCompleted(String pubSubTopic, int partitionId, PubSubPosition position, String message) - Specified by:
dataRecoveryCompletedin interfaceVeniceNotifier
-
startOfIncrementalPushReceived
public void startOfIncrementalPushReceived(String pubSubTopic, int partitionId, PubSubPosition position, String message) - Specified by:
startOfIncrementalPushReceivedin interfaceVeniceNotifier
-
endOfIncrementalPushReceived
public void endOfIncrementalPushReceived(String pubSubTopic, int partitionId, PubSubPosition position, String message) - Specified by:
endOfIncrementalPushReceivedin interfaceVeniceNotifier
-
catchUpVersionTopicOffsetLag
- Specified by:
catchUpVersionTopicOffsetLagin 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
-
stopped
- Specified by:
stoppedin interfaceVeniceNotifier
-