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
ConstructorDescriptionHelixReadOnlyStoreRepository
(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer compositeSerializer, String clusterName, int refreshAttemptsForZkReconnect, long refreshIntervalForZkReconnectInMs) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
protected void
onRepositoryChanged
(Collection<String> newZkStoreNames) HelixReadOnlyZKSharedSystemStoreRepository
is 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 updateHelixReadOnlyZKSharedSystemStoreRepository
accordingly.protected void
onStoreChanged
(Store newStore) protected Store
void
refresh()
protected Store
removeStore
(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, 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
waitVersion, waitVersion
-
Constructor Details
-
HelixReadOnlyStoreRepository
public HelixReadOnlyStoreRepository(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer compositeSerializer, String clusterName, int refreshAttemptsForZkReconnect, long refreshIntervalForZkReconnectInMs)
-
-
Method Details
-
refresh
public void refresh()- Specified by:
refresh
in interfaceVeniceResource
- Overrides:
refresh
in classCachedReadOnlyStoreRepository
-
clear
public void clear()- Specified by:
clear
in interfaceVeniceResource
- Overrides:
clear
in classCachedReadOnlyStoreRepository
-
putStore
- Overrides:
putStore
in classCachedReadOnlyStoreRepository
-
removeStore
- Overrides:
removeStore
in classCachedReadOnlyStoreRepository
-
onStoreChanged
-
onRepositoryChanged
HelixReadOnlyZKSharedSystemStoreRepository
is 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 updateHelixReadOnlyZKSharedSystemStoreRepository
accordingly.- Parameters:
newZkStoreNames
-
-