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.HttpUriRequest
composeRouterRequestInternal(java.lang.String storageNodeUri)
byte[]
getBody()
io.netty.handler.codec.http.HttpMethod
getHttpMethod()
java.lang.String
getLocation()
java.lang.String
getPartition()
RequestType
getRequestType()
protected RequestType
getStreamingRequestType()
java.lang.String
getVeniceApiVersionHeader()
protected static boolean
isFormatB64(java.lang.String key)
VenicePath
substitutePartitionKey(RouterKey s)
For single-get request, the substituted request is same as the original request.VenicePath
substitutePartitionKey(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
-
-
-
-
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:
getRequestType
in classVenicePath
-
getStreamingRequestType
protected RequestType getStreamingRequestType()
- Overrides:
getStreamingRequestType
in classVenicePath
-
substitutePartitionKey
public VenicePath substitutePartitionKey(RouterKey s)
For single-get request, the substituted request is same as the original request.- Specified by:
substitutePartitionKey
in classVenicePath
-
substitutePartitionKey
public VenicePath substitutePartitionKey(@Nonnull java.util.Collection<RouterKey> s)
- Specified by:
substitutePartitionKey
in classVenicePath
-
composeRouterRequestInternal
public org.apache.http.client.methods.HttpUriRequest composeRouterRequestInternal(java.lang.String storageNodeUri)
- Specified by:
composeRouterRequestInternal
in 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:
getHttpMethod
in classVenicePath
-
getBody
public byte[] getBody()
- Specified by:
getBody
in classVenicePath
-
getVeniceApiVersionHeader
public java.lang.String getVeniceApiVersionHeader()
- Specified by:
getVeniceApiVersionHeader
in classVenicePath
-
-