Class VeniceSingleGetPath
java.lang.Object
com.linkedin.venice.router.api.path.VenicePath
com.linkedin.venice.router.api.path.VeniceSingleGetPath
- All Implemented Interfaces:
ResourcePath<RouterKey>
-
Field Summary
Fields inherited from class com.linkedin.venice.router.api.path.VenicePath
retryConfig, retryManager, storeVersionName
-
Constructor Summary
ConstructorsConstructorDescriptionVeniceSingleGetPath
(StoreVersionName storeVersionName, String key, String uri, VenicePartitionFinder partitionFinder, RouterStats<AggRouterHttpRequestStats> stats, RouterRetryConfig retryConfig, RetryManager retryManager, VeniceResponseDecompressor responseDecompressor) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.client.methods.HttpUriRequest
composeRouterRequestInternal
(String storageNodeUri) byte[]
getBody()
io.netty.handler.codec.http.HttpMethod
int
protected RequestType
protected static boolean
isFormatB64
(String key) For single-get request, the substituted request is same as the original request.Methods inherited from class com.linkedin.venice.router.api.path.VenicePath
canRequestStorageNode, composeRouterRequest, getChunkedResponse, getClientComputeHeader, getHelixGroupId, getOriginalRequestStartTs, getPartitionKeys, getRequestId, getRequestSize, getResourceName, getResponseDecompressor, getSmartLongTailRetryAbortThresholdMs, getStoreName, getTime, getVersionNumber, isLongTailRetryAllowedForNewRequest, isLongTailRetryWithinBudget, isRetryRequest, isRetryRequestTooLate, isSmartLongTailRetryEnabled, isStreamingRequest, markStorageNodeAsFast, recordOriginalRequestStartTimestamp, recordRequest, requestStorageNode, setChunkedWriteHandler, setHelixGroupId, setPartitionKeys, setRetryRequest, setRetryRequest, setupRetryRelatedInfo, setupVeniceHeaders
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.linkedin.alpini.router.api.ResourcePath
getPartitionKey
-
Constructor Details
-
VeniceSingleGetPath
public VeniceSingleGetPath(StoreVersionName storeVersionName, String key, String uri, VenicePartitionFinder partitionFinder, RouterStats<AggRouterHttpRequestStats> stats, RouterRetryConfig retryConfig, RetryManager retryManager, VeniceResponseDecompressor responseDecompressor) throws RouterException - Throws:
RouterException
-
-
Method Details
-
getRequestType
- Specified by:
getRequestType
in classVenicePath
-
getStreamingRequestType
- Overrides:
getStreamingRequestType
in classVenicePath
-
substitutePartitionKey
For single-get request, the substituted request is same as the original request.- Specified by:
substitutePartitionKey
in classVenicePath
-
substitutePartitionKey
- Specified by:
substitutePartitionKey
in classVenicePath
-
composeRouterRequestInternal
public org.apache.http.client.methods.HttpUriRequest composeRouterRequestInternal(String storageNodeUri) - Specified by:
composeRouterRequestInternal
in classVenicePath
-
getLocation
-
isFormatB64
-
getHttpMethod
public io.netty.handler.codec.http.HttpMethod getHttpMethod()- Specified by:
getHttpMethod
in classVenicePath
-
getBody
public byte[] getBody()- Specified by:
getBody
in classVenicePath
-
getVeniceApiVersionHeader
- Specified by:
getVeniceApiVersionHeader
in classVenicePath
-
getLongTailRetryThresholdMs
public int getLongTailRetryThresholdMs()- Specified by:
getLongTailRetryThresholdMs
in classVenicePath
-