Package com.linkedin.venice.listener
Class ServerReadMetadataRepository
- java.lang.Object
-
- com.linkedin.venice.listener.ServerReadMetadataRepository
-
- All Implemented Interfaces:
ReadMetadataRetriever
public class ServerReadMetadataRepository extends java.lang.Object implements ReadMetadataRetriever
A wrapper that holds reference for various repositories responsible for constructing metadata responses upon request.
-
-
Constructor Summary
Constructors Constructor Description ServerReadMetadataRepository(java.lang.String serverCluster, io.tehuti.metrics.MetricsRepository metricsRepository, ReadOnlyStoreRepository storeRepository, ReadOnlySchemaRepository schemaRepository, HelixReadOnlyStoreConfigRepository storeConfigRepository, java.util.Optional<java.util.concurrent.CompletableFuture<HelixCustomizedViewOfflinePushRepository>> customizedViewFuture, java.util.Optional<java.util.concurrent.CompletableFuture<HelixInstanceConfigRepository>> helixInstanceFuture)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerCurrentVersionResponse
getCurrentVersionResponse(java.lang.String storeName)
MetadataResponse
getMetadata(java.lang.String storeName)
Return the metadata information for the given store.
-
-
-
Constructor Detail
-
ServerReadMetadataRepository
public ServerReadMetadataRepository(java.lang.String serverCluster, io.tehuti.metrics.MetricsRepository metricsRepository, ReadOnlyStoreRepository storeRepository, ReadOnlySchemaRepository schemaRepository, HelixReadOnlyStoreConfigRepository storeConfigRepository, java.util.Optional<java.util.concurrent.CompletableFuture<HelixCustomizedViewOfflinePushRepository>> customizedViewFuture, java.util.Optional<java.util.concurrent.CompletableFuture<HelixInstanceConfigRepository>> helixInstanceFuture)
-
-
Method Detail
-
getMetadata
public MetadataResponse getMetadata(java.lang.String storeName)
Return the metadata information for the given store. The data is retrieved from its respective repositories which originate from the VeniceServer.- Specified by:
getMetadata
in interfaceReadMetadataRetriever
- Parameters:
storeName
-- Returns:
MetadataResponse
object that holds all the information required for answering a server metadata fetch request.
-
getCurrentVersionResponse
public ServerCurrentVersionResponse getCurrentVersionResponse(java.lang.String storeName)
- Specified by:
getCurrentVersionResponse
in interfaceReadMetadataRetriever
-
-