Class VeniceSingleGetPath
- java.lang.Object
-
- com.linkedin.venice.router.api.path.VenicePath
-
- com.linkedin.venice.router.api.path.VeniceSingleGetPath
-
- All Implemented Interfaces:
ResourcePath<RouterKey>
public class VeniceSingleGetPath extends VenicePath
-
-
Field Summary
-
Fields inherited from class com.linkedin.venice.router.api.path.VenicePath
retryManager, storeName, versionNumber
-
-
Constructor Summary
Constructors Constructor Description VeniceSingleGetPath(java.lang.String storeName, int versionNumber, java.lang.String resourceName, java.lang.String key, java.lang.String uri, VenicePartitionFinder partitionFinder, RouterStats<AggRouterHttpRequestStats> stats, RetryManager retryManager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.http.client.methods.HttpUriRequestcomposeRouterRequestInternal(java.lang.String storageNodeUri)byte[]getBody()io.netty.handler.codec.http.HttpMethodgetHttpMethod()java.lang.StringgetLocation()java.lang.StringgetPartition()RequestTypegetRequestType()protected RequestTypegetStreamingRequestType()java.lang.StringgetVeniceApiVersionHeader()protected static booleanisFormatB64(java.lang.String key)VenicePathsubstitutePartitionKey(RouterKey s)For single-get request, the substituted request is same as the original request.VenicePathsubstitutePartitionKey(java.util.Collection<RouterKey> s)-
Methods inherited from class com.linkedin.venice.router.api.path.VenicePath
canRequestStorageNode, composeRouterRequest, getChunkedResponse, getHelixGroupId, getLongTailRetryThresholdMs, getOriginalRequestStartTs, getPartitionKeys, getRequestId, getRequestSize, getResourceName, getResponseDecompressor, getResponseHeaders, getSmartLongTailRetryAbortThresholdMs, getStoreName, getVersionNumber, isLongTailRetryAllowedForNewRequest, isLongTailRetryWithinBudget, isRetryRequest, isRetryRequestTooLate, isSmartLongTailRetryEnabled, isStreamingRequest, markStorageNodeAsFast, recordOriginalRequestStartTimestamp, recordRequest, requestStorageNode, setChunkedWriteHandler, setHelixGroupId, setLongTailRetryThresholdMs, setPartitionKeys, setResponseDecompressor, setResponseHeaders, 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, hasMultiplePartitionKeys
-
-
-
-
Constructor Detail
-
VeniceSingleGetPath
public VeniceSingleGetPath(java.lang.String storeName, int versionNumber, java.lang.String resourceName, java.lang.String key, java.lang.String uri, VenicePartitionFinder partitionFinder, RouterStats<AggRouterHttpRequestStats> stats, RetryManager retryManager) throws RouterException- Throws:
RouterException
-
-
Method Detail
-
getRequestType
public RequestType getRequestType()
- Specified by:
getRequestTypein classVenicePath
-
getStreamingRequestType
protected RequestType getStreamingRequestType()
- Overrides:
getStreamingRequestTypein classVenicePath
-
substitutePartitionKey
public VenicePath substitutePartitionKey(RouterKey s)
For single-get request, the substituted request is same as the original request.- Specified by:
substitutePartitionKeyin classVenicePath
-
substitutePartitionKey
public VenicePath substitutePartitionKey(@Nonnull java.util.Collection<RouterKey> s)
- Specified by:
substitutePartitionKeyin classVenicePath
-
composeRouterRequestInternal
public org.apache.http.client.methods.HttpUriRequest composeRouterRequestInternal(java.lang.String storageNodeUri)
- Specified by:
composeRouterRequestInternalin classVenicePath
-
getLocation
@Nonnull public java.lang.String getLocation()
-
isFormatB64
protected static boolean isFormatB64(java.lang.String key)
-
getPartition
public java.lang.String getPartition()
-
getHttpMethod
public io.netty.handler.codec.http.HttpMethod getHttpMethod()
- Specified by:
getHttpMethodin classVenicePath
-
getBody
public byte[] getBody()
- Specified by:
getBodyin classVenicePath
-
getVeniceApiVersionHeader
public java.lang.String getVeniceApiVersionHeader()
- Specified by:
getVeniceApiVersionHeaderin classVenicePath
-
-