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
ConstructorsConstructorDescriptionHelixReadWriteStoreRepositoryAdapter(HelixReadOnlyZKSharedSystemStoreRepository systemStoreRepository, ReadWriteStoreRepository regularStoreRepository, String clusterName)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidThis function only be used to add regular venice store, and the system store is bundled with regular venice store.voiddeleteStore(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.voidupdateStore(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, unregisterStoreDataChangedListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.linkedin.venice.meta.ReadOnlyStoreRepository
getAllStores, getBatchGetLimit, getStoreOrThrow, getTotalStoreReadQuota, hasStore, isReadComputationEnabled, refreshOneStore, registerStoreDataChangedListener, unregisterStoreDataChangedListener, waitVersion, waitVersionMethods inherited from interface com.linkedin.venice.VeniceResource
clear, refresh 
- 
Constructor Details
 - 
Method Details
- 
getStore
Description copied from interface:ReadOnlyStoreRepositoryGet one store by given name from repository.- Specified by:
 getStorein interfaceReadOnlyStoreRepository- Overrides:
 getStorein classHelixReadOnlyStoreRepositoryAdapter- Parameters:
 storeName- name of wanted store.- Returns:
 - Store for given name.
 
 - 
updateStore
Description copied from interface:ReadWriteStoreRepositoryUpdate store in repository.- Specified by:
 updateStorein 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:
 deleteStorein 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:
 addStorein interfaceReadWriteStoreRepository- Parameters:
 store- store need to be added.
 
 -