@InterfaceAudience.Private public class MetricsMasterSourceImpl extends BaseSourceImpl implements MetricsMasterSource
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registry
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_FINISHED_INITIALIZATION_TIME_DESC, MASTER_FINISHED_INITIALIZATION_TIME_NAME, MASTER_START_TIME_DESC, MASTER_START_TIME_NAME, MERGE_PLAN_COUNT_DESC, MERGE_PLAN_COUNT_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, SPLIT_PLAN_COUNT_DESC, SPLIT_PLAN_COUNT_NAME, ZOOKEEPER_QUORUM_DESC, ZOOKEEPER_QUORUM_NAME
HBASE_METRICS_SYSTEM_NAME
Constructor and Description |
---|
MetricsMasterSourceImpl(MetricsMasterWrapper masterWrapper) |
MetricsMasterSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext,
MetricsMasterWrapper masterWrapper) |
Modifier and Type | Method and Description |
---|---|
void |
getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector,
boolean all) |
void |
incRequests(long inc)
Increment the number of requests the cluster has seen.
|
void |
init()
Clear out the metrics and re-prepare the source.
|
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogram
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogram
public MetricsMasterSourceImpl(MetricsMasterWrapper masterWrapper)
public MetricsMasterSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext, MetricsMasterWrapper masterWrapper)
public void init()
BaseSource
init
in interface BaseSource
init
in class BaseSourceImpl
public void incRequests(long inc)
MetricsMasterSource
incRequests
in interface MetricsMasterSource
inc
- Ammount to increment the total by.public void getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector, boolean all)
getMetrics
in interface org.apache.hadoop.metrics2.MetricsSource
getMetrics
in class BaseSourceImpl
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.