org.apache.hadoop.metrics2.lib
Class Interns

java.lang.Object
  extended by org.apache.hadoop.metrics2.lib.Interns

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class Interns
extends Object

Helpers to create interned metrics info


Constructor Summary
Interns()
           
 
Method Summary
static MetricsInfo info(String name, String description)
          Get a metric info object
static MetricsTag tag(MetricsInfo info, String value)
          Get a metrics tag
static MetricsTag tag(String name, String description, String value)
          Get a metrics tag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interns

public Interns()
Method Detail

info

public static MetricsInfo info(String name,
                               String description)
Get a metric info object

Parameters:
name -
description -
Returns:
an interned metric info object

tag

public static MetricsTag tag(MetricsInfo info,
                             String value)
Get a metrics tag

Parameters:
info - of the tag
value - of the tag
Returns:
an interned metrics tag

tag

public static MetricsTag tag(String name,
                             String description,
                             String value)
Get a metrics tag

Parameters:
name - of the tag
description - of the tag
value - of the tag
Returns:
an interned metrics tag


Copyright © 2014 Apache Software Foundation. All Rights Reserved.