Package com.linkedin.venice.helix
Class HelixReadOnlyStoreRepository
java.lang.Object
com.linkedin.venice.helix.CachedReadOnlyStoreRepository
com.linkedin.venice.helix.HelixReadOnlyStoreRepository
- All Implemented Interfaces:
ReadOnlyStoreRepository,VeniceResource
- Direct Known Subclasses:
HelixReadOnlyZKSharedSystemStoreRepository,SubscriptionBasedStoreRepository
-
Field Summary
Fields inherited from class com.linkedin.venice.helix.CachedReadOnlyStoreRepository
clusterLockManager, clusterName, clusterStoreRepositoryPath, STORE_REPOSITORY_PATH, storeMap, zkClient, zkDataAccessor -
Constructor Summary
ConstructorsConstructorDescriptionHelixReadOnlyStoreRepository(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer compositeSerializer, String clusterName) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()protected voidonRepositoryChanged(Collection<String> newZkStoreNames) HelixReadOnlyZKSharedSystemStoreRepositoryis overriding this function to filter out stores, which are not necessary to put a watch against, and if this logic to monitor the zk store repository gets changed in the future, we need to updateHelixReadOnlyZKSharedSystemStoreRepositoryaccordingly.protected voidonStoreChanged(Store newStore) protected Storevoidrefresh()protected StoreremoveStore(String storeName) Methods inherited from class com.linkedin.venice.helix.CachedReadOnlyStoreRepository
getAllStores, getBatchGetLimit, getStore, getStoreFromZk, getStoreOrThrow, getStoresFromZk, getStoresFromZk, getStoreZkPath, getTotalStoreReadQuota, hasStore, isReadComputationEnabled, notifyStoreChanged, notifyStoreCreated, notifyStoreDeleted, 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
waitVersion, waitVersion
-
Constructor Details
-
HelixReadOnlyStoreRepository
public HelixReadOnlyStoreRepository(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer compositeSerializer, String clusterName)
-
-
Method Details
-
refresh
public void refresh()- Specified by:
refreshin interfaceVeniceResource- Overrides:
refreshin classCachedReadOnlyStoreRepository
-
clear
public void clear()- Specified by:
clearin interfaceVeniceResource- Overrides:
clearin classCachedReadOnlyStoreRepository
-
putStore
- Overrides:
putStorein classCachedReadOnlyStoreRepository
-
removeStore
- Overrides:
removeStorein classCachedReadOnlyStoreRepository
-
onStoreChanged
-
onRepositoryChanged
HelixReadOnlyZKSharedSystemStoreRepositoryis overriding this function to filter out stores, which are not necessary to put a watch against, and if this logic to monitor the zk store repository gets changed in the future, we need to updateHelixReadOnlyZKSharedSystemStoreRepositoryaccordingly.- Parameters:
newZkStoreNames-
-