Package org.apache.hadoop.fs.azurebfs.utils
Enum Class TracingHeaderVersion
- All Implemented Interfaces:
Serializable,Comparable<TracingHeaderVersion>,Constable
Enum representing the version of the tracing header used in Azure Blob File System (ABFS).
It defines two versions: V0 and V1, with their respective field counts.
Any changes to the tracing header should introduce a new version so that every
version has a fixed predefined schema of fields.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionVersion 0 of the aggregated metrics tracing header, which includes a version prefix and has 3 permanent fields.Version 0 of the tracing header, which has no version prefix and contains 8 permanent and a few optional fields.Version 1 of the tracing header, which includes a version prefix and has 13 permanent fields.Version 2 of the tracing header, which includes a version prefix and has 16 permanent fields. -
Method Summary
Modifier and TypeMethodDescriptionstatic TracingHeaderVersionReturns the latest version of the tracing header.intstatic TracingHeaderVersiontoString()static TracingHeaderVersionReturns the enum constant of this class with the specified name.static TracingHeaderVersion[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
V0
Version 0 of the tracing header, which has no version prefix and contains 8 permanent and a few optional fields. This is the initial version of the tracing header. -
V1
Version 1 of the tracing header, which includes a version prefix and has 13 permanent fields. This version is used for the current tracing header schema.Schema: version:clientCorrelationId:clientRequestId:fileSystemId :primaryRequestId:streamId:opType:retryHeader:ingressHandler :position:operatedBlobCount:operationSpecificHeader:httpOperationHeader -
V2
Version 2 of the tracing header, which includes a version prefix and has 16 permanent fields. This version is used for the current tracing header schema.Schema: version:clientCorrelationId:clientRequestId:fileSystemId :primaryRequestId:streamId:opType:retryHeader:ingressHandler :position:operatedBlobCount:operationSpecificHeader:httpOperationHeader :resourceUtilizationMetrics:fnsEndptConvertedIndicator -
AV0
Version 0 of the aggregated metrics tracing header, which includes a version prefix and has 3 permanent fields. This version is used for the aggregated metrics tracing header schema.Schema: metricsVersion:List<AggregatedMetrics> where AggregatedMetrics = clientCorrelationId:fileSystemId:aggregated-metrics and AggregatedMetrics is enclosed within [] and separated by :
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<TracingHeaderVersion>
-
getCurrentVersion
Returns the latest version of the tracing header. Any changes done to the schema of tracing context header should be accompanied by a version bump.- Returns:
- the latest version of the tracing header.
-
getMetricsCurrentVersion
-
getFieldCount
public int getFieldCount() -
getVersionString
-