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
Modifier and TypeFieldDescriptionprivate final MetricHistogram
private final MetricHistogram
private final MutableFastCounter
private final MetricHistogram
private final MetricsIOWrapper
Fields inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registry
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
Fields 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
ConstructorDescriptionMetricsIOSourceImpl
(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext, MetricsIOWrapper wrapper) MetricsIOSourceImpl
(MetricsIOWrapper wrapper) -
Method Summary
Modifier and TypeMethodDescriptionvoid
getMetrics
(org.apache.hadoop.metrics2.MetricsCollector metricsCollector, boolean all) void
void
updateFsPReadTime
(long t) Update the fs positional read time histogramvoid
updateFsReadTime
(long t) Update the fs sequential read time histogramvoid
updateFsWriteTime
(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, updateHistogram
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, 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:MetricsIOSource
Update the fs sequential read time histogram- Specified by:
updateFsReadTime
in interfaceMetricsIOSource
- Parameters:
t
- time it took, in milliseconds
-
updateFsPReadTime
Description copied from interface:MetricsIOSource
Update the fs positional read time histogram- Specified by:
updateFsPReadTime
in interfaceMetricsIOSource
- Parameters:
t
- time it took, in milliseconds
-
updateFsWriteTime
Description copied from interface:MetricsIOSource
Update the fs write time histogram- Specified by:
updateFsWriteTime
in interfaceMetricsIOSource
- Parameters:
t
- time it took, in milliseconds
-
incrSlowFsRead
- Specified by:
incrSlowFsRead
in interfaceMetricsIOSource
-
getMetrics
- Specified by:
getMetrics
in interfaceorg.apache.hadoop.metrics2.MetricsSource
- Overrides:
getMetrics
in classBaseSourceImpl
-