Package com.linkedin.davinci.ingestion
Interface IngestionBackend
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
DefaultIngestionBackend
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddIngestionNotifier(VeniceNotifier ingestionListener) dropStoragePartitionGracefully(VeniceStoreVersionConfig storeConfig, int partition, int timeoutInSeconds, boolean removeEmptyStorageEngine, String replicaId) This method stops to subscribe the specified topic partition and delete partition data from storage.default CompletableFuture<Void>dropStoragePartitionGracefully(VeniceStoreVersionConfig storeConfig, int partition, int timeoutInSeconds, String replicaId) This method stops to subscribe the specified topic partition and delete partition data from storage and it will always drop empty storage engine.booleanCheck whether there are any current version bootstrapping or not.voidkillConsumptionTask(String topicName) voidremoveStorageEngine(String topicName) voidsetStorageEngineReference(String topicName, AtomicReference<StorageEngine> storageEngineReference) voidshutdownIngestionTask(String topicName) voidstartConsumption(VeniceStoreVersionConfig storeConfig, int partition, Optional<PubSubPosition> pubSubPosition, String replicaId) stopConsumption(VeniceStoreVersionConfig storeConfig, int partition, String replicaId)
-
Method Details
-
startConsumption
void startConsumption(VeniceStoreVersionConfig storeConfig, int partition, Optional<PubSubPosition> pubSubPosition, String replicaId) -
stopConsumption
CompletableFuture<Void> stopConsumption(VeniceStoreVersionConfig storeConfig, int partition, String replicaId) -
killConsumptionTask
-
shutdownIngestionTask
-
addIngestionNotifier
-
dropStoragePartitionGracefully
default CompletableFuture<Void> dropStoragePartitionGracefully(VeniceStoreVersionConfig storeConfig, int partition, int timeoutInSeconds, String replicaId) This method stops to subscribe the specified topic partition and delete partition data from storage and it will always drop empty storage engine.- Parameters:
storeConfig- Store version configpartition- Partition number to be dropped in the store version.timeoutInSeconds- Number of seconds to wait before timeout.- Returns:
- a future for the drop partition action.
-
dropStoragePartitionGracefully
CompletableFuture<Void> dropStoragePartitionGracefully(VeniceStoreVersionConfig storeConfig, int partition, int timeoutInSeconds, boolean removeEmptyStorageEngine, String replicaId) This method stops to subscribe the specified topic partition and delete partition data from storage.- Parameters:
storeConfig- Store version configpartition- Partition number to be dropped in the store version.timeoutInSeconds- Number of seconds to wait before timeout.removeEmptyStorageEngine- Whether to drop storage engine when dropping the last partition.replicaId- The replica identifier for this partition.- Returns:
- a future for the drop partition action.
-
getStoreIngestionService
KafkaStoreIngestionService getStoreIngestionService() -
removeStorageEngine
-
setStorageEngineReference
void setStorageEngineReference(String topicName, AtomicReference<StorageEngine> storageEngineReference) -
hasCurrentVersionBootstrapping
boolean hasCurrentVersionBootstrapping()Check whether there are any current version bootstrapping or not.
-