Package com.linkedin.venice.meta
Interface ReadOnlyStoreRepository
- All Superinterfaces:
VeniceResource
- All Known Subinterfaces:
ReadWriteStoreRepository
,SubscriptionBasedReadOnlyStoreRepository
- All Known Implementing Classes:
CachedReadOnlyStoreRepository
,HelixReadOnlyStoreRepository
,HelixReadOnlyStoreRepositoryAdapter
,HelixReadOnlyZKSharedSystemStoreRepository
,HelixReadWriteStoreRepository
,HelixReadWriteStoreRepositoryAdapter
,NativeMetadataRepository
,SharedHelixReadOnlyZKSharedSystemStoreRepository
,SubscriptionBasedStoreRepository
,ThinClientMetaStoreBasedRepository
Interface defined readonly operations to access stores.
-
Method Summary
Modifier and TypeMethodDescriptionGet all stores in the current repositoryint
getBatchGetLimit
(String storeName) Get batch-get limit for the specified storeGet one store by given name from repository.getStoreOrThrow
(String storeName) long
Get total read quota of all stores.boolean
Whether the store exists or not.boolean
isReadComputationEnabled
(String storeName) Whether computation is enabled for the specified store.refreshOneStore
(String storeName) Selective refresh operation which fetches one store from ZKvoid
Register store data change listener.void
Unregister store data change listener.waitVersion
(String storeName, int versionNumber, Duration timeout) Wait for a specified store/version to appear in the Store Repository and retrieve them.waitVersion
(String storeName, int versionNumber, Duration timeout, long delayMs) Methods inherited from interface com.linkedin.venice.VeniceResource
clear, refresh
-
Method Details
-
getStore
Get one store by given name from repository.- Parameters:
storeName
- name of wanted store.- Returns:
- Store for given name.
-
getStoreOrThrow
- Throws:
VeniceNoStoreException
-
waitVersion
Wait for a specified store/version to appear in the Store Repository and retrieve them.- Parameters:
storeName
- Store name to wait for.versionNumber
- Version number to wait for.timeout
- Maximum wait time allowed before giving up.- Returns:
- (store, version) pair on success. (store, null) if store exists, but version still isn't after waiting for allowed time. (null, null) if store still doesn't exit after waiting for allowed time.
-
waitVersion
-
hasStore
Whether the store exists or not.- Parameters:
storeName
- store name- Returns:
-
refreshOneStore
Selective refresh operation which fetches one store from ZK- Parameters:
storeName
- store name- Returns:
- the newly refreshed store
-
getAllStores
Get all stores in the current repository- Returns:
-
getTotalStoreReadQuota
long getTotalStoreReadQuota()Get total read quota of all stores. -
registerStoreDataChangedListener
Register store data change listener.- Parameters:
listener
-
-
unregisterStoreDataChangedListener
Unregister store data change listener.- Parameters:
listener
-
-
getBatchGetLimit
Get batch-get limit for the specified store- Parameters:
storeName
-- Returns:
-
isReadComputationEnabled
Whether computation is enabled for the specified store.- Parameters:
storeName
- store name- Returns:
-