Package org.apache.hadoop.metrics2
Class MetricsTag
java.lang.Object
org.apache.hadoop.metrics2.MetricsTag
- All Implemented Interfaces:
MetricsInfo
Immutable tag for metrics (for grouping on host/queue/username etc.)
-
Constructor Summary
ConstructorsConstructorDescriptionMetricsTag(MetricsInfo info, String value) Construct the tag with name, description and value -
Method Summary
Modifier and TypeMethodDescriptionTypically the description corresponds to annotationMetric.about()or the name of the class.booleaninthashCode()info()name()Typically name corresponds to annotationMetric.value()or the name of the class.toString()value()Get the value of the tag
-
Constructor Details
-
MetricsTag
Construct the tag with name, description and value- Parameters:
info- of the tagvalue- of the tag
-
-
Method Details
-
name
Description copied from interface:MetricsInfoTypically name corresponds to annotationMetric.value()or the name of the class.- Specified by:
namein interfaceMetricsInfo- Returns:
- the name of the metric/tag
-
description
Description copied from interface:MetricsInfoTypically the description corresponds to annotationMetric.about()or the name of the class.- Specified by:
descriptionin interfaceMetricsInfo- Returns:
- the description of the metric/tag
-
info
- Returns:
- the info object of the tag
-
value
Get the value of the tag- Returns:
- the value
-
equals
-
hashCode
public int hashCode() -
toString
-