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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
catchUpVersionTopicOffsetLag
(String pubSubTopic, int partitionId) void
close()
The Process is shutting down and clean up the resources associated with the Notifier.void
void
dataRecoveryCompleted
(String pubSubTopic, int partitionId, long offset, String message) void
endOfIncrementalPushReceived
(String pubSubTopic, int partitionId, long offset, String message) void
endOfPushReceived
(String pubSubTopic, int partitionId, long offset, String message) void
Report an error, during the consumption for a Partitions and store.void
void
void
void
startOfIncrementalPushReceived
(String pubSubTopic, int partitionId, long offset, String message) void
void
topicSwitchReceived
(String pubSubTopic, int partitionId, long offset, String message) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
started
in interfaceVeniceNotifier
-
restarted
- Specified by:
restarted
in interfaceVeniceNotifier
-
completed
- Specified by:
completed
in interfaceVeniceNotifier
-
progress
- Specified by:
progress
in interfaceVeniceNotifier
-
endOfPushReceived
- Specified by:
endOfPushReceived
in interfaceVeniceNotifier
-
topicSwitchReceived
- Specified by:
topicSwitchReceived
in interfaceVeniceNotifier
-
dataRecoveryCompleted
- Specified by:
dataRecoveryCompleted
in interfaceVeniceNotifier
-
startOfIncrementalPushReceived
public void startOfIncrementalPushReceived(String pubSubTopic, int partitionId, long offset, String message) - Specified by:
startOfIncrementalPushReceived
in interfaceVeniceNotifier
-
endOfIncrementalPushReceived
public void endOfIncrementalPushReceived(String pubSubTopic, int partitionId, long offset, String message) - Specified by:
endOfIncrementalPushReceived
in interfaceVeniceNotifier
-
catchUpVersionTopicOffsetLag
- Specified by:
catchUpVersionTopicOffsetLag
in interfaceVeniceNotifier
-
close
public void close()Description copied from interface:VeniceNotifier
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
- Specified by:
close
in interfaceVeniceNotifier
-
error
Description copied from interface:VeniceNotifier
Report an error, during the consumption for a Partitions and store. The error may or may not be fatal.- Specified by:
error
in interfaceVeniceNotifier
-
stopped
- Specified by:
stopped
in interfaceVeniceNotifier
-