Package com.linkedin.venice.router.api
Class VeniceVersionFinder
- java.lang.Object
-
- com.linkedin.venice.router.api.VeniceVersionFinder
-
public class VeniceVersionFinder extends java.lang.Object
VeniceVersionFinder
provides methods to find the version for a given store.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,RouterCurrentVersionStats>
storeStats
-
Constructor Summary
Constructors Constructor Description VeniceVersionFinder(ReadOnlyStoreRepository metadataRepository, HelixBaseRoutingRepository routingDataRepository, StaleVersionStats stats, HelixReadOnlyStoreConfigRepository storeConfigRepo, java.util.Map<java.lang.String,java.lang.String> clusterToD2Map, java.lang.String clusterName, CompressorFactory compressorFactory, io.tehuti.metrics.MetricsRepository metricsRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getVersion(java.lang.String storeName, BasicFullHttpRequest request)
-
-
-
Field Detail
-
storeStats
protected final java.util.Map<java.lang.String,RouterCurrentVersionStats> storeStats
-
-
Constructor Detail
-
VeniceVersionFinder
public VeniceVersionFinder(ReadOnlyStoreRepository metadataRepository, HelixBaseRoutingRepository routingDataRepository, StaleVersionStats stats, HelixReadOnlyStoreConfigRepository storeConfigRepo, java.util.Map<java.lang.String,java.lang.String> clusterToD2Map, java.lang.String clusterName, CompressorFactory compressorFactory, io.tehuti.metrics.MetricsRepository metricsRepository)
-
-
Method Detail
-
getVersion
public int getVersion(java.lang.String storeName, BasicFullHttpRequest request) throws VeniceException
- Throws:
VeniceException
-
-