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) getReplicas
(int version, int partitionId) getReplicas
(long requestId, int version, int partitionId, int requiredReplicaCount) This function is expected to return fully qualified URI, such as: "https://fake.host:8888".getReplicas
(long requestId, int version, int partitionId, int requiredReplicaCount, Set<String> excludedInstances) default boolean
isReady()
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
-
getReplicas
default List<String> getReplicas(long requestId, int version, int partitionId, int requiredReplicaCount) This function is expected to return fully qualified URI, such as: "https://fake.host:8888".- Parameters:
version
-partitionId
-- Returns:
-
getReplicas
-
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()
-