org.apache.hadoop.hbase.regionserver.metrics
Class RegionMetricsStorage
java.lang.Object
org.apache.hadoop.hbase.regionserver.metrics.RegionMetricsStorage
public class RegionMetricsStorage
- extends Object
This class if for maintaining the maps used to power metrics for hfiles,
regions, and regionservers. It has methods to mutate and get state of metrics
numbers. These numbers are exposed to Hadoop metrics through
RegionServerDynamicMetrics.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegionMetricsStorage
public RegionMetricsStorage()
getNumericMetrics
public static Map<String,AtomicLong> getNumericMetrics()
getNumericPersistentMetrics
public static Map<String,AtomicLong> getNumericPersistentMetrics()
getTimeVaryingMetrics
public static Map<String,Pair<AtomicLong,AtomicInteger>> getTimeVaryingMetrics()
incrNumericMetric
public static void incrNumericMetric(String key,
long amount)
incrTimeVaryingMetric
public static void incrTimeVaryingMetric(String key,
long amount)
incrNumericPersistentMetric
public static void incrNumericPersistentMetric(String key,
long amount)
setNumericMetric
public static void setNumericMetric(String key,
long amount)
getNumericMetric
public static long getNumericMetric(String key)
getTimeVaryingMetric
public static Pair<Long,Integer> getTimeVaryingMetric(String key)
getNumericPersistentMetric
public static long getNumericPersistentMetric(String key)
clear
public static void clear()
- Clear all copies of the metrics this stores.
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.