Package com.linkedin.venice.helix
Class HelixReadWriteStoreRepositoryAdapter
java.lang.Object
com.linkedin.venice.helix.HelixReadOnlyStoreRepositoryAdapter
com.linkedin.venice.helix.HelixReadWriteStoreRepositoryAdapter
- All Implemented Interfaces:
ReadOnlyStoreRepository
,ReadWriteStoreRepository
,VeniceResource
public class HelixReadWriteStoreRepositoryAdapter
extends HelixReadOnlyStoreRepositoryAdapter
implements ReadWriteStoreRepository
This repository provides an read-write interface to access both system store and regular venice store.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.linkedin.venice.helix.HelixReadOnlyStoreRepositoryAdapter
HelixReadOnlyStoreRepositoryAdapter.VeniceStoreDataChangedListener
-
Constructor Summary
ConstructorDescriptionHelixReadWriteStoreRepositoryAdapter
(HelixReadOnlyZKSharedSystemStoreRepository systemStoreRepository, ReadWriteStoreRepository regularStoreRepository, String clusterName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
This function only be used to add regular venice store, and the system store is bundled with regular venice store.void
deleteStore
(String name) This function only be used to delete regular venice store, and the system store is bundled with regular venice store.Get one store by given name from repository.void
updateStore
(Store store) Update store in repository.Methods inherited from class com.linkedin.venice.helix.HelixReadOnlyStoreRepositoryAdapter
clear, getAllStores, getBatchGetLimit, getStoreOrThrow, getTotalStoreReadQuota, hasStore, isReadComputationEnabled, refresh, refreshOneStore, registerStoreDataChangedListener, unregisterStoreDataChangedListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.linkedin.venice.meta.ReadOnlyStoreRepository
getAllStores, getBatchGetLimit, getStoreOrThrow, getTotalStoreReadQuota, hasStore, isReadComputationEnabled, refreshOneStore, registerStoreDataChangedListener, unregisterStoreDataChangedListener, waitVersion, waitVersion
Methods inherited from interface com.linkedin.venice.VeniceResource
clear, refresh
-
Constructor Details
-
Method Details
-
getStore
Description copied from interface:ReadOnlyStoreRepository
Get one store by given name from repository.- Specified by:
getStore
in interfaceReadOnlyStoreRepository
- Overrides:
getStore
in classHelixReadOnlyStoreRepositoryAdapter
- Parameters:
storeName
- name of wanted store.- Returns:
- Store for given name.
-
updateStore
Description copied from interface:ReadWriteStoreRepository
Update store in repository.- Specified by:
updateStore
in interfaceReadWriteStoreRepository
- Parameters:
store
- store need to be udpated.
-
deleteStore
This function only be used to delete regular venice store, and the system store is bundled with regular venice store.- Specified by:
deleteStore
in interfaceReadWriteStoreRepository
- Parameters:
name
- name of wantted store.
-
addStore
This function only be used to add regular venice store, and the system store is bundled with regular venice store.- Specified by:
addStore
in interfaceReadWriteStoreRepository
- Parameters:
store
- store need to be added.
-