org.apache.hadoop.metrics2
Class MetricsTag
java.lang.Object
org.apache.hadoop.metrics2.MetricsTag
- All Implemented Interfaces:
- MetricsInfo
@InterfaceAudience.Public
@InterfaceStability.Evolving
public class MetricsTag
- extends Object
- implements MetricsInfo
Immutable tag for metrics (for grouping on host/queue/username etc.)
MetricsTag
public MetricsTag(MetricsInfo info,
String value)
- Construct the tag with name, description and value
- Parameters:
info
- of the tagvalue
- of the tag
name
public String name()
- Specified by:
name
in interface MetricsInfo
- Returns:
- the name of the metric/tag
description
public String description()
- Specified by:
description
in interface MetricsInfo
- Returns:
- the description of the metric/tag
info
public MetricsInfo info()
- Returns:
- the info object of the tag
value
public String value()
- Get the value of the tag
- Returns:
- the value
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2014 Apache Software Foundation. All Rights Reserved.