Interface StoreMetadata
- All Superinterfaces:
AutoCloseable
,Closeable
,SchemaReader
- All Known Implementing Classes:
AbstractStoreMetadata
,RequestBasedMetadata
This interface defines the APIs to retrieve store metadata and routing data,
and it also includes the feedback APIs:
trackHealthBasedOnRequestToInstance(java.lang.String, int, int, java.util.concurrent.CompletableFuture<com.linkedin.venice.client.store.transport.TransportClientResponse>)
to decide the healthiness of each replica.-
Method Summary
Modifier and TypeMethodDescriptionint
getCompressor
(CompressionStrategy compressionStrategy, int version) int
int
getPartitionId
(int version, byte[] key) int
getPartitionId
(int version, ByteBuffer 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".getReplicas
(int version, int partitionId) default boolean
isReady()
<K> void
routeRequest
(RequestContext requestContext, RecordSerializer<K> keySerializer) void
start()
trackHealthBasedOnRequestToInstance
(String instance, int version, int partitionId, CompletableFuture<TransportClientResponse> transportFuture) Methods inherited from interface com.linkedin.venice.schema.SchemaReader
getKeySchema, getLatestUpdateSchema, getLatestValueSchema, getLatestValueSchemaId, getUpdateSchema, getValueSchema, getValueSchemaId
-
Method Details
-
getClusterName
String getClusterName() -
getStoreName
String getStoreName() -
getCurrentStoreVersion
int getCurrentStoreVersion() -
getPartitionId
-
getPartitionId
int getPartitionId(int version, byte[] key) -
getReplicas
-
getReplica
String 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". -
trackHealthBasedOnRequestToInstance
ChainedCompletableFuture<Integer,Integer> trackHealthBasedOnRequestToInstance(String instance, int version, int partitionId, CompletableFuture<TransportClientResponse> transportFuture) -
getInstanceHealthMonitor
InstanceHealthMonitor getInstanceHealthMonitor() -
getCompressor
-
getBatchGetLimit
int getBatchGetLimit() -
start
void start() -
isReady
default boolean isReady() -
routeRequest
-