Class Interns

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

@Private @Evolving public final class Interns extends Object
Helpers to create interned metrics info
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private 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

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.hadoop.metrics2.MetricsInfo
    info(String name, String description)
    Get a metric info object
    static org.apache.hadoop.metrics2.MetricsTag
    tag(String name, String description, String value)
    Get a metrics tag
    static org.apache.hadoop.metrics2.MetricsTag
    tag(org.apache.hadoop.metrics2.MetricsInfo info, String value)
    Get a metrics tag

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • infoCache

      private static org.apache.hbase.thirdparty.com.google.common.cache.LoadingCache<String,ConcurrentHashMap<String,org.apache.hadoop.metrics2.MetricsInfo>> infoCache
    • tagCache

      private static org.apache.hbase.thirdparty.com.google.common.cache.LoadingCache<org.apache.hadoop.metrics2.MetricsInfo,ConcurrentHashMap<String,org.apache.hadoop.metrics2.MetricsTag>> tagCache
  • Constructor Details

  • Method Details

    • info

      public static org.apache.hadoop.metrics2.MetricsInfo info(String name, String description)
      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 tag
      value - 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 tag
      description - of the tag
      value - of the tag
      Returns:
      an interned metrics tag