org.apache.hadoop.hbase.metrics
Class Interns

java.lang.Object
  extended by org.apache.hadoop.hbase.metrics.Interns

@InterfaceAudience.Private
@InterfaceStability.Evolving
public final class Interns
extends Object

Helpers to create interned metrics info


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
 

Method Detail

info

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

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 © 2007–2016 The Apache Software Foundation. All rights reserved.