@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, registryCHECKSUM_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_NAMEHBASE_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, updateHistogramclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogramprivate 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)
MetricsIOSourceupdateFsReadTime in interface MetricsIOSourcet - time it took, in millisecondspublic void updateFsPReadTime(long t)
MetricsIOSourceupdateFsPReadTime in interface MetricsIOSourcet - time it took, in millisecondspublic void updateFsWriteTime(long t)
MetricsIOSourceupdateFsWriteTime in interface MetricsIOSourcet - time it took, in millisecondspublic void getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector, boolean all)
getMetrics in interface org.apache.hadoop.metrics2.MetricsSourcegetMetrics in class BaseSourceImplCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.