Class CachingDaVinciClientFactory
java.lang.Object
com.linkedin.davinci.client.factory.CachingDaVinciClientFactory
- All Implemented Interfaces:
DaVinciClientFactory
,Closeable
,AutoCloseable
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
-
Field Summary
Modifier and TypeFieldDescriptionprotected final VeniceProperties
protected boolean
protected final Map<String,
DaVinciConfig> protected final com.linkedin.d2.balancer.D2Client
protected final ICProvider
protected final List<DaVinciClient>
protected final io.tehuti.metrics.MetricsRepository
protected final Map<String,
DaVinciClient> -
Constructor Summary
ConstructorDescriptionCachingDaVinciClientFactory
(com.linkedin.d2.balancer.D2Client d2Client, io.tehuti.metrics.MetricsRepository metricsRepository, VeniceProperties backendConfig) Deprecated.CachingDaVinciClientFactory
(com.linkedin.d2.balancer.D2Client d2Client, io.tehuti.metrics.MetricsRepository metricsRepository, VeniceProperties backendConfig, Optional<Set<String>> managedClients) Deprecated.CachingDaVinciClientFactory
(com.linkedin.d2.balancer.D2Client d2Client, io.tehuti.metrics.MetricsRepository metricsRepository, VeniceProperties backendConfig, Optional<Set<String>> managedClients, ICProvider icProvider) Deprecated.CachingDaVinciClientFactory
(com.linkedin.d2.balancer.D2Client d2Client, String clusterDiscoveryD2ServiceName, io.tehuti.metrics.MetricsRepository metricsRepository, VeniceProperties backendConfig) CachingDaVinciClientFactory
(com.linkedin.d2.balancer.D2Client d2Client, String clusterDiscoveryD2ServiceName, io.tehuti.metrics.MetricsRepository metricsRepository, VeniceProperties backendConfig, Optional<Set<String>> managedClients) CachingDaVinciClientFactory
(com.linkedin.d2.balancer.D2Client d2Client, String clusterDiscoveryD2ServiceName, io.tehuti.metrics.MetricsRepository metricsRepository, VeniceProperties backendConfig, Optional<Set<String>> managedClients, ICProvider icProvider) CachingDaVinciClientFactory
(com.linkedin.d2.balancer.D2Client d2Client, String clusterDiscoveryD2ServiceName, io.tehuti.metrics.MetricsRepository metricsRepository, VeniceProperties backendConfig, Optional<Set<String>> managedClients, ICProvider icProvider, Executor readChunkExecutorForLargeRequest) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<K,
V> DaVinciClient<K, V> getAndStartGenericAvroClient
(String storeName, DaVinciConfig config) <K,
V> DaVinciClient<K, V> getAndStartGenericAvroClient
(String storeName, DaVinciConfig config, Class<V> valueClass) <K,
V extends org.apache.avro.specific.SpecificRecord>
DaVinciClient<K,V> getAndStartSpecificAvroClient
(String storeName, DaVinciConfig config, Class<V> valueClass) protected DaVinciClient
getClient
(String storeName, DaVinciConfig config, Class valueClass, CachingDaVinciClientFactory.DaVinciClientConstructor clientConstructor, Class clientClass, boolean startClient) <K,
V> DaVinciClient<K, V> getGenericAvroClient
(String storeName, DaVinciConfig config) <K,
V> DaVinciClient<K, V> getGenericAvroClient
(String storeName, DaVinciConfig config, Class<V> valueClass) <K,
V extends org.apache.avro.specific.SpecificRecord>
DaVinciClient<K,V> getSpecificAvroClient
(String storeName, DaVinciConfig config, Class<V> valueClass)
-
Field Details
-
closed
protected boolean closed -
d2Client
protected final com.linkedin.d2.balancer.D2Client d2Client -
metricsRepository
protected final io.tehuti.metrics.MetricsRepository metricsRepository -
backendConfig
-
managedClients
-
icProvider
-
isolatedClients
-
configs
-
-
Constructor Details
-
CachingDaVinciClientFactory
@Deprecated public CachingDaVinciClientFactory(com.linkedin.d2.balancer.D2Client d2Client, io.tehuti.metrics.MetricsRepository metricsRepository, VeniceProperties backendConfig) Deprecated. -
CachingDaVinciClientFactory
@Deprecated public CachingDaVinciClientFactory(com.linkedin.d2.balancer.D2Client d2Client, io.tehuti.metrics.MetricsRepository metricsRepository, VeniceProperties backendConfig, Optional<Set<String>> managedClients) Deprecated. -
CachingDaVinciClientFactory
@Deprecated public CachingDaVinciClientFactory(com.linkedin.d2.balancer.D2Client d2Client, io.tehuti.metrics.MetricsRepository metricsRepository, VeniceProperties backendConfig, Optional<Set<String>> managedClients, ICProvider icProvider) Deprecated. -
CachingDaVinciClientFactory
public CachingDaVinciClientFactory(com.linkedin.d2.balancer.D2Client d2Client, String clusterDiscoveryD2ServiceName, io.tehuti.metrics.MetricsRepository metricsRepository, VeniceProperties backendConfig) -
CachingDaVinciClientFactory
public CachingDaVinciClientFactory(com.linkedin.d2.balancer.D2Client d2Client, String clusterDiscoveryD2ServiceName, io.tehuti.metrics.MetricsRepository metricsRepository, VeniceProperties backendConfig, Optional<Set<String>> managedClients) -
CachingDaVinciClientFactory
public CachingDaVinciClientFactory(com.linkedin.d2.balancer.D2Client d2Client, String clusterDiscoveryD2ServiceName, io.tehuti.metrics.MetricsRepository metricsRepository, VeniceProperties backendConfig, Optional<Set<String>> managedClients, ICProvider icProvider) -
CachingDaVinciClientFactory
public CachingDaVinciClientFactory(com.linkedin.d2.balancer.D2Client d2Client, String clusterDiscoveryD2ServiceName, io.tehuti.metrics.MetricsRepository metricsRepository, VeniceProperties backendConfig, Optional<Set<String>> managedClients, ICProvider icProvider, Executor readChunkExecutorForLargeRequest)
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getGenericAvroClient
- Specified by:
getGenericAvroClient
in interfaceDaVinciClientFactory
-
getGenericAvroClient
public <K,V> DaVinciClient<K,V> getGenericAvroClient(String storeName, DaVinciConfig config, Class<V> valueClass) -
getAndStartGenericAvroClient
public <K,V> DaVinciClient<K,V> getAndStartGenericAvroClient(String storeName, DaVinciConfig config) - Specified by:
getAndStartGenericAvroClient
in interfaceDaVinciClientFactory
-
getAndStartGenericAvroClient
public <K,V> DaVinciClient<K,V> getAndStartGenericAvroClient(String storeName, DaVinciConfig config, Class<V> valueClass) -
getSpecificAvroClient
public <K,V extends org.apache.avro.specific.SpecificRecord> DaVinciClient<K,V> getSpecificAvroClient(String storeName, DaVinciConfig config, Class<V> valueClass) - Specified by:
getSpecificAvroClient
in interfaceDaVinciClientFactory
-
getAndStartSpecificAvroClient
public <K,V extends org.apache.avro.specific.SpecificRecord> DaVinciClient<K,V> getAndStartSpecificAvroClient(String storeName, DaVinciConfig config, Class<V> valueClass) - Specified by:
getAndStartSpecificAvroClient
in interfaceDaVinciClientFactory
-
getBackendConfig
-
getClient
protected DaVinciClient getClient(String storeName, DaVinciConfig config, Class valueClass, CachingDaVinciClientFactory.DaVinciClientConstructor clientConstructor, Class clientClass, boolean startClient)
-