Class AbstractStoreMetadata
java.lang.Object
com.linkedin.venice.fastclient.meta.AbstractStoreMetadata
- All Implemented Interfaces:
StoreMetadata,SchemaReader,Closeable,AutoCloseable
- Direct Known Subclasses:
RequestBasedMetadata
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intgetCompressor(CompressionStrategy compressionStrategy, int version, CompressorFactory compressorFactory, Map<Integer, ByteBuffer> versionZstdDictionaryMap) intgetPartitionId(int version, byte[] key) getReplica(long requestId, int groupId, int version, int partitionId, Set<String> excludedInstances) This function is expected to return fully qualified URI, such as: "https://fake.host:8888".<K> voidrouteRequest(RequestContext requestContext, RecordSerializer<K> keySerializer) voidsetRoutingStrategy(AbstractClientRoutingStrategy routingStrategy) For testing only.voidsetRoutingStrategy(ClientRoutingStrategyType strategyType) trackHealthBasedOnRequestToInstance(String instance, int version, int partitionId, CompletableFuture<TransportClientResponse> transportFuture) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.linkedin.venice.schema.SchemaReader
getKeySchema, getLatestUpdateSchema, getLatestValueSchema, getLatestValueSchemaId, getLatestValueSchemaId, getUpdateSchema, getValueSchema, getValueSchemaIdMethods inherited from interface com.linkedin.venice.fastclient.meta.StoreMetadata
getClusterName, getCompressor, getCurrentStoreVersion, getPartitionId, getReplicas, isReady, start
-
Field Details
-
routingStrategy
-
storeName
-
-
Constructor Details
-
AbstractStoreMetadata
-
-
Method Details
-
setRoutingStrategy
-
setRoutingStrategy
For testing only. -
getStoreName
- Specified by:
getStoreNamein interfaceStoreMetadata
-
getPartitionId
public int getPartitionId(int version, byte[] key) - Specified by:
getPartitionIdin interfaceStoreMetadata
-
getReplica
public String getReplica(long requestId, int groupId, int version, int partitionId, Set<String> excludedInstances) Description copied from interface:StoreMetadataThis function is expected to return fully qualified URI, such as: "https://fake.host:8888".- Specified by:
getReplicain interfaceStoreMetadata
-
trackHealthBasedOnRequestToInstance
public ChainedCompletableFuture<Integer,Integer> trackHealthBasedOnRequestToInstance(String instance, int version, int partitionId, CompletableFuture<TransportClientResponse> transportFuture) - Specified by:
trackHealthBasedOnRequestToInstancein interfaceStoreMetadata
-
getInstanceHealthMonitor
- Specified by:
getInstanceHealthMonitorin interfaceStoreMetadata
-
getBatchGetLimit
public int getBatchGetLimit()- Specified by:
getBatchGetLimitin interfaceStoreMetadata
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getCompressor
public VeniceCompressor getCompressor(CompressionStrategy compressionStrategy, int version, CompressorFactory compressorFactory, Map<Integer, ByteBuffer> versionZstdDictionaryMap) -
routeRequest
- Specified by:
routeRequestin interfaceStoreMetadata
-