org.apache.hadoop.hbase.master
Class MetricsMasterSourceImpl

java.lang.Object
  extended by org.apache.hadoop.hbase.metrics.BaseSourceImpl
      extended by org.apache.hadoop.hbase.master.MetricsMasterSourceImpl
All Implemented Interfaces:
MetricsMasterSource, BaseSource, JvmPauseMonitorSource, MetricsSource

@InterfaceAudience.Private
public class MetricsMasterSourceImpl
extends BaseSourceImpl
implements MetricsMasterSource

Hadoop2 implementation of MetricsMasterSource. Implements BaseSource through BaseSourceImpl, following the pattern


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry
 
Fields inherited from interface org.apache.hadoop.hbase.master.MetricsMasterSource
AVERAGE_LOAD_DESC, AVERAGE_LOAD_NAME, CLUSTER_ID_DESC, CLUSTER_ID_NAME, CLUSTER_REQUESTS_NAME, DEAD_REGION_SERVERS_DESC, DEAD_REGION_SERVERS_NAME, IS_ACTIVE_MASTER_DESC, IS_ACTIVE_MASTER_NAME, LIVE_REGION_SERVERS_DESC, LIVE_REGION_SERVERS_NAME, MASTER_ACTIVE_TIME_DESC, MASTER_ACTIVE_TIME_NAME, MASTER_START_TIME_DESC, MASTER_START_TIME_NAME, METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, NUM_DEAD_REGION_SERVERS_NAME, NUM_REGION_SERVERS_NAME, NUMBER_OF_DEAD_REGION_SERVERS_DESC, NUMBER_OF_REGION_SERVERS_DESC, SERVER_NAME_DESC, SERVER_NAME_NAME, ZOOKEEPER_QUORUM_DESC, ZOOKEEPER_QUORUM_NAME
 
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
 
Fields inherited from interface org.apache.hadoop.hbase.metrics.JvmPauseMonitorSource
INFO_THRESHOLD_COUNT_DESC, INFO_THRESHOLD_COUNT_KEY, PAUSE_TIME_WITH_GC_DESC, PAUSE_TIME_WITH_GC_KEY, PAUSE_TIME_WITHOUT_GC_DESC, PAUSE_TIME_WITHOUT_GC_KEY, WARN_THRESHOLD_COUNT_DESC, WARN_THRESHOLD_COUNT_KEY
 
Constructor Summary
MetricsMasterSourceImpl(MetricsMasterWrapper masterWrapper)
           
MetricsMasterSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext, MetricsMasterWrapper masterWrapper)
           
 
Method Summary
 void getMetrics(MetricsCollector metricsCollector, boolean all)
           
 void incInfoThresholdExceeded(int count)
           
 void incRequests(int inc)
           
 void incWarnThresholdExceeded(int count)
           
 void init()
           
 void updatePauseTimeWithGc(long t)
           
 void updatePauseTimeWithoutGc(long t)
           
 
Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogram, updateQuantile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogram, updateQuantile
 

Constructor Detail

MetricsMasterSourceImpl

public MetricsMasterSourceImpl(MetricsMasterWrapper masterWrapper)

MetricsMasterSourceImpl

public MetricsMasterSourceImpl(String metricsName,
                               String metricsDescription,
                               String metricsContext,
                               String metricsJmxContext,
                               MetricsMasterWrapper masterWrapper)
Method Detail

init

public void init()
Specified by:
init in interface BaseSource
Overrides:
init in class BaseSourceImpl

incRequests

public void incRequests(int inc)
Specified by:
incRequests in interface MetricsMasterSource

getMetrics

public void getMetrics(MetricsCollector metricsCollector,
                       boolean all)
Specified by:
getMetrics in interface MetricsSource
Overrides:
getMetrics in class BaseSourceImpl

incInfoThresholdExceeded

public void incInfoThresholdExceeded(int count)
Specified by:
incInfoThresholdExceeded in interface JvmPauseMonitorSource

incWarnThresholdExceeded

public void incWarnThresholdExceeded(int count)
Specified by:
incWarnThresholdExceeded in interface JvmPauseMonitorSource

updatePauseTimeWithGc

public void updatePauseTimeWithGc(long t)
Specified by:
updatePauseTimeWithGc in interface JvmPauseMonitorSource

updatePauseTimeWithoutGc

public void updatePauseTimeWithoutGc(long t)
Specified by:
updatePauseTimeWithoutGc in interface JvmPauseMonitorSource


Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.