@InterfaceAudience.Private @InterfaceStability.Evolving public final class Interns extends Object
Modifier and Type | Field and Description |
---|---|
private static com.google.common.cache.LoadingCache<String,ConcurrentHashMap<String,org.apache.hadoop.metrics2.MetricsInfo>> |
infoCache |
private static com.google.common.cache.LoadingCache<org.apache.hadoop.metrics2.MetricsInfo,ConcurrentHashMap<String,org.apache.hadoop.metrics2.MetricsTag>> |
tagCache |
Modifier | Constructor and Description |
---|---|
private |
Interns() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.metrics2.MetricsInfo |
info(String name,
String description)
Get a metric info object
|
static org.apache.hadoop.metrics2.MetricsTag |
tag(org.apache.hadoop.metrics2.MetricsInfo info,
String value)
Get a metrics tag
|
static org.apache.hadoop.metrics2.MetricsTag |
tag(String name,
String description,
String value)
Get a metrics tag
|
private static com.google.common.cache.LoadingCache<String,ConcurrentHashMap<String,org.apache.hadoop.metrics2.MetricsInfo>> infoCache
private static com.google.common.cache.LoadingCache<org.apache.hadoop.metrics2.MetricsInfo,ConcurrentHashMap<String,org.apache.hadoop.metrics2.MetricsTag>> tagCache
public static org.apache.hadoop.metrics2.MetricsInfo info(String name, String description)
public static org.apache.hadoop.metrics2.MetricsTag tag(org.apache.hadoop.metrics2.MetricsInfo info, String value)
info
- of the tagvalue
- of the tagCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.