Package org.apache.hadoop.metrics2.lib
Class Interns
java.lang.Object
org.apache.hadoop.metrics2.lib.Interns
Helpers to create interned metrics info.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricsInfoGet a metric info object.static MetricsTagGet a metrics tag.static MetricsTagtag(MetricsInfo info, String value) Get a metrics tag.
-
Constructor Details
-
Interns
public Interns()
-
-
Method Details
-
info
Get a metric info object.- Parameters:
name- Name of metric info objectdescription- Description of metric info object- Returns:
- an interned metric info object
-
tag
Get a metrics tag.- Parameters:
info- of the tagvalue- of the tag- Returns:
- an interned metrics tag
-
tag
Get a metrics tag.- Parameters:
name- of the tagdescription- of the tagvalue- of the tag- Returns:
- an interned metrics tag
-