AbfsPerfLoggablepublic class AbfsAHCHttpOperation extends AbfsHttpOperation
AbfsHttpOperation for orchestrating server calls using
Apache Http Client.AbfsHttpOperation.AbfsHttpOperationWithFixedResult| Constructor | Description |
|---|---|
AbfsAHCHttpOperation(java.net.URL url,
java.lang.String method,
java.util.List<AbfsHttpHeader> requestHeaders,
java.time.Duration connectionTimeout,
java.time.Duration readTimeout,
org.apache.hadoop.fs.azurebfs.services.AbfsApacheHttpClient abfsApacheHttpClient) |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.io.InputStream |
getContentInputStream() |
Get the response stream from the connection.
|
protected java.io.InputStream |
getErrorStream() |
Get the error stream from the connection.
|
java.lang.String |
getRequestProperty(java.lang.String name) |
|
java.lang.String |
getResponseHeader(java.lang.String headerName) |
Get response header value for the given headerKey.
|
java.lang.String |
getTracingContextSuffix() |
Get the suffix to add to the tracing context that defines what http-client is
used to make the network call
|
void |
processResponse(byte[] buffer,
int offset,
int length) |
Gets and processes the HTTP response.
|
void |
sendPayload(byte[] buffer,
int offset,
int length) |
Sends the HTTP request.
|
void |
setRequestProperty(java.lang.String key,
java.lang.String value) |
Set request header.
|
getAbfsHttpOperationWithFixedResult, getBytesReceived, getBytesSent, getClientRequestId, getExpectedAppendPos, getExpectedBytesToBeSent, getHost, getListResultSchema, getLogString, getMaskedEncodedUrl, getMaskedUrl, getMethod, getRecvLatency, getRequestId, getSendLatency, getStatusCode, getStatusDescription, getStorageErrorCode, getStorageErrorMessage, getUrl, isConnectionDisconnectedOnError, setBytesSent, setConnectionDisconnectedOnError, setConnectionTimeMs, setExpectedBytesToBeSent, setMaskForSAS, setRecvResponseTimeMs, setRequestId, setSendRequestTimeMs, setStatusCode, setStatusDescription, toStringpublic AbfsAHCHttpOperation(java.net.URL url,
java.lang.String method,
java.util.List<AbfsHttpHeader> requestHeaders,
java.time.Duration connectionTimeout,
java.time.Duration readTimeout,
org.apache.hadoop.fs.azurebfs.services.AbfsApacheHttpClient abfsApacheHttpClient)
throws java.io.IOException
java.io.IOExceptionprotected java.io.InputStream getErrorStream()
throws java.io.IOException
getErrorStream in class AbfsHttpOperationjava.io.IOException - if the error stream could not be created from the response stream.public void processResponse(byte[] buffer,
int offset,
int length)
throws java.io.IOException
processResponse in class AbfsHttpOperationbuffer - a buffer to hold the response entity bodyoffset - an offset in the buffer where the data will being.length - the number of bytes to be written to the buffer.java.io.IOException - if an error occurs.public void setRequestProperty(java.lang.String key,
java.lang.String value)
setRequestProperty in class AbfsHttpOperationkey - header key.value - header value.public java.lang.String getResponseHeader(java.lang.String headerName)
getResponseHeader in class AbfsHttpOperationheaderName - header key.protected java.io.InputStream getContentInputStream()
throws java.io.IOException
getContentInputStream in class AbfsHttpOperationjava.io.IOException - if the response stream could not be created from the connection.public void sendPayload(byte[] buffer,
int offset,
int length)
throws java.io.IOException
sendPayload in class AbfsHttpOperationbuffer - the request entity body.offset - an offset into the buffer where the data beings.length - the length of the data in the buffer.java.io.IOException - if an error occurs.public java.lang.String getRequestProperty(java.lang.String name)
public java.lang.String getTracingContextSuffix()
getTracingContextSuffix in class AbfsHttpOperationCopyright © 2008–2025 Apache Software Foundation. All rights reserved.