Package org.apache.hadoop.hbase.metrics
Class Interns
java.lang.Object
org.apache.hadoop.hbase.metrics.Interns
Helpers to create interned metrics info
-
Field Summary
Modifier and TypeFieldDescriptionprivate static org.apache.hbase.thirdparty.com.google.common.cache.LoadingCache<String,
ConcurrentHashMap<String, org.apache.hadoop.metrics2.MetricsInfo>> private static org.apache.hbase.thirdparty.com.google.common.cache.LoadingCache<org.apache.hadoop.metrics2.MetricsInfo,
ConcurrentHashMap<String, org.apache.hadoop.metrics2.MetricsTag>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.hadoop.metrics2.MetricsInfo
Get a metric info objectstatic org.apache.hadoop.metrics2.MetricsTag
Get a metrics tagstatic org.apache.hadoop.metrics2.MetricsTag
Get a metrics tag
-
Field Details
-
infoCache
private static org.apache.hbase.thirdparty.com.google.common.cache.LoadingCache<String,ConcurrentHashMap<String, infoCacheorg.apache.hadoop.metrics2.MetricsInfo>> -
tagCache
private static org.apache.hbase.thirdparty.com.google.common.cache.LoadingCache<org.apache.hadoop.metrics2.MetricsInfo,ConcurrentHashMap<String, tagCacheorg.apache.hadoop.metrics2.MetricsTag>>
-
-
Constructor Details
-
Interns
private Interns()
-
-
Method Details
-
info
Get a metric info object- Returns:
- an interned metric info object
-
tag
public static org.apache.hadoop.metrics2.MetricsTag tag(org.apache.hadoop.metrics2.MetricsInfo info, String value) Get a metrics tag- Parameters:
info
- of the tagvalue
- of the tag- Returns:
- an interned metrics tag
-
tag
public static org.apache.hadoop.metrics2.MetricsTag tag(String name, String description, String value) Get a metrics tag- Parameters:
name
- of the tagdescription
- of the tagvalue
- of the tag- Returns:
- an interned metrics tag
-