Package org.apache.hadoop.metrics2.util
Class MetricsCache.Record
java.lang.Object
org.apache.hadoop.metrics2.util.MetricsCache.Record
- Enclosing class:
- MetricsCache
Cached record
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLookup a metric valuegetMetricInstance(String key) Lookup a metric instanceLookup a tag valuemetrics()Deprecated.use metricsEntrySet() insteadtags()toString()
-
Constructor Details
-
Record
public Record()
-
-
Method Details
-
getTag
Lookup a tag value- Parameters:
key- name of the tag- Returns:
- the tag value
-
getMetric
Lookup a metric value- Parameters:
key- name of the metric- Returns:
- the metric value
-
getMetricInstance
Lookup a metric instance- Parameters:
key- name of the metric- Returns:
- the metric instance
-
tags
- Returns:
- the entry set of the tags of the record
-
metrics
Deprecated.use metricsEntrySet() instead- Returns:
- entry set of metrics
-
metricsEntrySet
- Returns:
- entry set of metrics
-
toString
-