Package com.linkedin.davinci.helix
Class StateModelIngestionProgressNotifier
java.lang.Object
com.linkedin.davinci.helix.StateModelIngestionProgressNotifier
- All Implemented Interfaces:
VeniceNotifier,Closeable,AutoCloseable
- Direct Known Subclasses:
LeaderFollowerIngestionProgressNotifier
This class notifies the Helix State Models (SM) about corresponding ingestion progress.
The class also holds latches that can be used in SM in the cases when state transitions
need to coordinate with ingestion progress.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompleted(String resourceName, int partitionId, PubSubPosition position, String message) voidReport an error, during the consumption for a Partitions and store.voidstopped(String resourceName, int partitionId, PubSubPosition position) 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, dataRecoveryCompleted, endOfIncrementalPushReceived, endOfIncrementalPushReceived, endOfPushReceived, endOfPushReceived, progress, progress, quotaNotViolated, quotaNotViolated, quotaViolated, quotaViolated, restarted, restarted, started, started, startOfIncrementalPushReceived, startOfIncrementalPushReceived, topicSwitchReceived, topicSwitchReceived
-
Constructor Details
-
StateModelIngestionProgressNotifier
public StateModelIngestionProgressNotifier()
-
-
Method Details
-
completed
public void completed(String resourceName, int partitionId, PubSubPosition position, String message) - 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
-
stopped
- Specified by:
stoppedin interfaceVeniceNotifier
-