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.HttpUriRequestcomposeRouterRequestInternal(String storageNodeUri) byte[]getBody()io.netty.handler.codec.http.HttpMethodintprotected RequestTypeprotected static booleanisFormatB64(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, setupVeniceHeadersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getRequestTypein classVenicePath
-
getStreamingRequestType
- Overrides:
getStreamingRequestTypein classVenicePath
-
substitutePartitionKey
For single-get request, the substituted request is same as the original request.- Specified by:
substitutePartitionKeyin classVenicePath
-
substitutePartitionKey
- Specified by:
substitutePartitionKeyin classVenicePath
-
composeRouterRequestInternal
public org.apache.http.client.methods.HttpUriRequest composeRouterRequestInternal(String storageNodeUri) - Specified by:
composeRouterRequestInternalin classVenicePath
-
getLocation
-
isFormatB64
-
getHttpMethod
public io.netty.handler.codec.http.HttpMethod getHttpMethod()- Specified by:
getHttpMethodin classVenicePath
-
getBody
public byte[] getBody()- Specified by:
getBodyin classVenicePath
-
getVeniceApiVersionHeader
- Specified by:
getVeniceApiVersionHeaderin classVenicePath
-
getLongTailRetryThresholdMs
public int getLongTailRetryThresholdMs()- Specified by:
getLongTailRetryThresholdMsin classVenicePath
-