Package org.apache.hadoop.hbase.io
Class MetricsIOSourceImpl
java.lang.Object
org.apache.hadoop.hbase.metrics.BaseSourceImpl
org.apache.hadoop.hbase.io.MetricsIOSourceImpl
- All Implemented Interfaces:
MetricsIOSource,BaseSource,org.apache.hadoop.metrics2.MetricsSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MetricHistogramprivate final MetricHistogramprivate final MutableFastCounterprivate final MetricHistogramprivate final MetricsIOWrapperFields inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registryFields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAMEFields inherited from interface org.apache.hadoop.hbase.io.MetricsIOSource
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, SLOW_FS_READS_DESC, SLOW_FS_READS_KEY -
Constructor Summary
ConstructorsConstructorDescriptionMetricsIOSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext, MetricsIOWrapper wrapper) MetricsIOSourceImpl(MetricsIOWrapper wrapper) -
Method Summary
Modifier and TypeMethodDescriptionvoidgetMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector, boolean all) voidvoidupdateFsPReadTime(long t) Update the fs positional read time histogramvoidupdateFsReadTime(long t) Update the fs sequential read time histogramvoidupdateFsWriteTime(long t) Update the fs write time histogramMethods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, removeMetric, setGauge, updateHistogramMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
-
Field Details
-
wrapper
-
fsReadTimeHisto
-
fsPReadTimeHisto
-
fsWriteTimeHisto
-
fsSlowReads
-
-
Constructor Details
-
MetricsIOSourceImpl
-
MetricsIOSourceImpl
public MetricsIOSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext, MetricsIOWrapper wrapper)
-
-
Method Details
-
updateFsReadTime
Description copied from interface:MetricsIOSourceUpdate the fs sequential read time histogram- Specified by:
updateFsReadTimein interfaceMetricsIOSource- Parameters:
t- time it took, in milliseconds
-
updateFsPReadTime
Description copied from interface:MetricsIOSourceUpdate the fs positional read time histogram- Specified by:
updateFsPReadTimein interfaceMetricsIOSource- Parameters:
t- time it took, in milliseconds
-
updateFsWriteTime
Description copied from interface:MetricsIOSourceUpdate the fs write time histogram- Specified by:
updateFsWriteTimein interfaceMetricsIOSource- Parameters:
t- time it took, in milliseconds
-
incrSlowFsRead
- Specified by:
incrSlowFsReadin interfaceMetricsIOSource
-
getMetrics
- Specified by:
getMetricsin interfaceorg.apache.hadoop.metrics2.MetricsSource- Overrides:
getMetricsin classBaseSourceImpl
-