Package com.linkedin.davinci.notifier
Class PushStatusNotifier
- java.lang.Object
-
- com.linkedin.davinci.notifier.PushStatusNotifier
-
- All Implemented Interfaces:
VeniceNotifier
,java.io.Closeable
,java.lang.AutoCloseable
public class PushStatusNotifier extends java.lang.Object implements VeniceNotifier
Notifies both OfflinePushStatus and Helix Customized View
-
-
Constructor Summary
Constructors Constructor Description PushStatusNotifier(OfflinePushAccessor offlinePushAccessor, HelixPartitionStatusAccessor helixPartitionStatusAccessor, PushStatusStoreWriter pushStatusStoreWriter, ReadOnlyStoreRepository storeRepository, java.lang.String instanceId, VeniceServerConfig.IncrementalPushStatusWriteMode incrementalPushStatusWriteMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
batchEndOfIncrementalPushReceived(java.lang.String topic, int partitionId, long offset, java.util.List<java.lang.String> pendingReportIncPushVersionList)
void
close()
The Process is shutting down and clean up the resources associated with the Notifier.void
completed(java.lang.String topic, int partitionId, long offset, java.lang.String message)
void
dataRecoveryCompleted(java.lang.String kafkaTopic, int partitionId, long offset, java.lang.String message)
void
endOfIncrementalPushReceived(java.lang.String topic, int partitionId, long offset, java.lang.String message)
void
endOfPushReceived(java.lang.String topic, int partitionId, long offset, java.lang.String message)
void
error(java.lang.String topic, int partitionId, java.lang.String message, java.lang.Exception ex)
Report an error, during the consumption for a Partitions and store.void
progress(java.lang.String topic, int partitionId, long offset, java.lang.String message)
void
quotaNotViolated(java.lang.String topic, int partitionId, long offset, java.lang.String message)
void
quotaViolated(java.lang.String topic, int partitionId, long offset, java.lang.String message)
void
restarted(java.lang.String topic, int partitionId, long offset, java.lang.String message)
void
started(java.lang.String topic, int partitionId, java.lang.String message)
void
startOfIncrementalPushReceived(java.lang.String topic, int partitionId, long offset, java.lang.String message)
void
topicSwitchReceived(java.lang.String topic, int partitionId, long offset, java.lang.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
catchUpVersionTopicOffsetLag, completed, endOfIncrementalPushReceived, endOfPushReceived, progress, quotaNotViolated, quotaViolated, restarted, started, startOfIncrementalPushReceived, stopped, topicSwitchReceived
-
-
-
-
Constructor Detail
-
PushStatusNotifier
public PushStatusNotifier(OfflinePushAccessor offlinePushAccessor, HelixPartitionStatusAccessor helixPartitionStatusAccessor, PushStatusStoreWriter pushStatusStoreWriter, ReadOnlyStoreRepository storeRepository, java.lang.String instanceId, VeniceServerConfig.IncrementalPushStatusWriteMode incrementalPushStatusWriteMode)
-
-
Method Detail
-
started
public void started(java.lang.String topic, int partitionId, java.lang.String message)
- Specified by:
started
in interfaceVeniceNotifier
-
restarted
public void restarted(java.lang.String topic, int partitionId, long offset, java.lang.String message)
- Specified by:
restarted
in interfaceVeniceNotifier
-
completed
public void completed(java.lang.String topic, int partitionId, long offset, java.lang.String message)
- Specified by:
completed
in interfaceVeniceNotifier
-
quotaViolated
public void quotaViolated(java.lang.String topic, int partitionId, long offset, java.lang.String message)
- Specified by:
quotaViolated
in interfaceVeniceNotifier
-
quotaNotViolated
public void quotaNotViolated(java.lang.String topic, int partitionId, long offset, java.lang.String message)
- Specified by:
quotaNotViolated
in interfaceVeniceNotifier
-
progress
public void progress(java.lang.String topic, int partitionId, long offset, java.lang.String message)
- Specified by:
progress
in interfaceVeniceNotifier
-
endOfPushReceived
public void endOfPushReceived(java.lang.String topic, int partitionId, long offset, java.lang.String message)
- Specified by:
endOfPushReceived
in interfaceVeniceNotifier
-
topicSwitchReceived
public void topicSwitchReceived(java.lang.String topic, int partitionId, long offset, java.lang.String message)
- Specified by:
topicSwitchReceived
in interfaceVeniceNotifier
-
dataRecoveryCompleted
public void dataRecoveryCompleted(java.lang.String kafkaTopic, int partitionId, long offset, java.lang.String message)
- Specified by:
dataRecoveryCompleted
in interfaceVeniceNotifier
-
startOfIncrementalPushReceived
public void startOfIncrementalPushReceived(java.lang.String topic, int partitionId, long offset, java.lang.String message)
- Specified by:
startOfIncrementalPushReceived
in interfaceVeniceNotifier
-
endOfIncrementalPushReceived
public void endOfIncrementalPushReceived(java.lang.String topic, int partitionId, long offset, java.lang.String message)
- Specified by:
endOfIncrementalPushReceived
in interfaceVeniceNotifier
-
batchEndOfIncrementalPushReceived
public void batchEndOfIncrementalPushReceived(java.lang.String topic, int partitionId, long offset, java.util.List<java.lang.String> pendingReportIncPushVersionList)
- Specified by:
batchEndOfIncrementalPushReceived
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 interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceVeniceNotifier
-
error
public void error(java.lang.String topic, int partitionId, java.lang.String message, java.lang.Exception ex)
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
-
-