@InterfaceAudience.Private public class MetricsIOSourceImpl extends BaseSourceImpl implements MetricsIOSource
Modifier and Type | Field and Description |
---|---|
private MetricHistogram |
fsPReadTimeHisto |
private MetricHistogram |
fsReadTimeHisto |
private MetricHistogram |
fsWriteTimeHisto |
private MetricsIOWrapper |
wrapper |
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registry
CHECKSUM_FAILURES_DESC, CHECKSUM_FAILURES_KEY, FS_PREAD_TIME_HISTO_DESC, FS_PREAD_TIME_HISTO_KEY, FS_READ_TIME_HISTO_DESC, FS_READ_TIME_HISTO_KEY, FS_WRITE_HISTO_KEY, FS_WRITE_TIME_HISTO_DESC, METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME
HBASE_METRICS_SYSTEM_NAME
Constructor and Description |
---|
MetricsIOSourceImpl(MetricsIOWrapper wrapper) |
MetricsIOSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext,
MetricsIOWrapper wrapper) |
Modifier and Type | Method and Description |
---|---|
void |
getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector,
boolean all) |
void |
updateFsPReadTime(long t)
Update the fs positional read time histogram
|
void |
updateFsReadTime(long t)
Update the fs sequential read time histogram
|
void |
updateFsWriteTime(long t)
Update the fs write time histogram
|
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
private final MetricsIOWrapper wrapper
private final MetricHistogram fsReadTimeHisto
private final MetricHistogram fsPReadTimeHisto
private final MetricHistogram fsWriteTimeHisto
public MetricsIOSourceImpl(MetricsIOWrapper wrapper)
public MetricsIOSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext, MetricsIOWrapper wrapper)
public void updateFsReadTime(long t)
MetricsIOSource
updateFsReadTime
in interface MetricsIOSource
t
- time it took, in millisecondspublic void updateFsPReadTime(long t)
MetricsIOSource
updateFsPReadTime
in interface MetricsIOSource
t
- time it took, in millisecondspublic void updateFsWriteTime(long t)
MetricsIOSource
updateFsWriteTime
in interface MetricsIOSource
t
- time it took, in millisecondspublic 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.