public class TracingContext extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CLIENT_CORRELATION_ID_PATTERN |
static int |
MAX_CLIENT_CORRELATION_ID_LENGTH |
| Constructor and Description |
|---|
TracingContext(String clientCorrelationID,
String fileSystemID,
FSOperationType opType,
boolean needsPrimaryReqId,
TracingHeaderFormat tracingHeaderFormat,
Listener listener) |
TracingContext(String clientCorrelationID,
String fileSystemID,
FSOperationType opType,
TracingHeaderFormat tracingHeaderFormat,
Listener listener)
Initialize TracingContext
|
TracingContext(TracingContext originalTracingContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
constructHeader(AbfsHttpOperation httpOperation)
Concatenate all identifiers separated by (:) into a string and set into
X_MS_CLIENT_REQUEST_ID header of the http operation
|
String |
getHeader()
Return header representing the request associated with the tracingContext
|
void |
setListener(Listener listener) |
void |
setOperation(FSOperationType operation) |
void |
setPrimaryRequestID() |
void |
setRetryCount(int retryCount) |
void |
setStreamID(String stream) |
static String |
validateClientCorrelationID(String clientCorrelationID) |
public static final int MAX_CLIENT_CORRELATION_ID_LENGTH
public static final String CLIENT_CORRELATION_ID_PATTERN
public TracingContext(String clientCorrelationID, String fileSystemID, FSOperationType opType, TracingHeaderFormat tracingHeaderFormat, Listener listener)
clientCorrelationID - Provided over config by clientfileSystemID - Unique guid for AzureBlobFileSystem instanceopType - Code indicating the high-level Hadoop operation that
triggered the current Store requesttracingHeaderFormat - Format of IDs to be printed in header and logslistener - Holds instance of TracingHeaderValidator during testing,
null otherwisepublic TracingContext(String clientCorrelationID, String fileSystemID, FSOperationType opType, boolean needsPrimaryReqId, TracingHeaderFormat tracingHeaderFormat, Listener listener)
public TracingContext(TracingContext originalTracingContext)
public static String validateClientCorrelationID(String clientCorrelationID)
public void setPrimaryRequestID()
public void setStreamID(String stream)
public void setOperation(FSOperationType operation)
public void setRetryCount(int retryCount)
public void setListener(Listener listener)
public void constructHeader(AbfsHttpOperation httpOperation)
httpOperation - AbfsHttpOperation instance to set header into
connectionpublic String getHeader()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.