Class MetricsWALSourceImpl
java.lang.Object
org.apache.hadoop.hbase.metrics.BaseSourceImpl
org.apache.hadoop.hbase.regionserver.wal.MetricsWALSourceImpl
- All Implemented Interfaces:
BaseSource,MetricsWALSource,org.apache.hadoop.metrics2.MetricsSource
Class that transitions metrics from MetricsWAL into the metrics subsystem. Implements BaseSource
through BaseSourceImpl, following the pattern.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MutableFastCounterprivate final MetricHistogramprivate final MetricHistogramprivate final MutableFastCounterprivate final MutableFastCounterprivate final MutableFastCounterprivate final ConcurrentMap<TableName,MutableFastCounter> private final ConcurrentMap<TableName,MutableFastCounter> private final MutableFastCounterprivate final MutableFastCounterprivate final MutableFastCounterprivate final MutableFastCounterprivate final MetricHistogramprivate final MutableFastCounterFields 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.regionserver.wal.MetricsWALSource
APPEND_COUNT, APPEND_COUNT_DESC, APPEND_SIZE, APPEND_SIZE_DESC, APPEND_TIME, APPEND_TIME_DESC, ERROR_ROLL_REQUESTED, ERROR_ROLL_REQUESTED_DESC, LOW_REPLICA_ROLL_REQUESTED, LOW_REPLICA_ROLL_REQUESTED_DESC, METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, ROLL_REQUESTED, ROLL_REQUESTED_DESC, SIZE_ROLL_REQUESTED, SIZE_ROLL_REQUESTED_DESC, SLOW_APPEND_COUNT, SLOW_APPEND_COUNT_DESC, SLOW_SYNC_ROLL_REQUESTED, SLOW_SYNC_ROLL_REQUESTED_DESC, SUCCESSFUL_LOG_ROLLS, SUCCESSFUL_LOG_ROLLS_DESC, SYNC_TIME, SYNC_TIME_DESC, WRITTEN_BYTES, WRITTEN_BYTES_DESC -
Constructor Summary
ConstructorsConstructorDescriptionMetricsWALSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext) -
Method Summary
Modifier and TypeMethodDescriptionlonglongvoidincrementAppendCount(TableName tableName) Increment the count of wal appendsvoidincrementAppendSize(TableName tableName, long size) Add the append size.voidincrementAppendTime(long time) Add the time it took to append.voidvoidvoidvoidvoidIncrement the number of appends that were slowvoidvoidIncrement the number of successful log roll requests.voidincrementSyncTime(long time) Add the time it took to sync the wal.voidincrementWrittenBytes(long val) Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
decGauge, getMetrics, 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
-
appendSizeHisto
-
appendTimeHisto
-
syncTimeHisto
-
appendCount
-
slowAppendCount
-
logRollRequested
-
errorRollRequested
-
lowReplicationRollRequested
-
slowSyncRollRequested
-
sizeRollRequested
-
writtenBytes
-
successfulLogRolls
-
perTableAppendCount
-
perTableAppendSize
-
-
Constructor Details
-
MetricsWALSourceImpl
public MetricsWALSourceImpl() -
MetricsWALSourceImpl
public MetricsWALSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
-
-
Method Details
-
incrementAppendSize
Description copied from interface:MetricsWALSourceAdd the append size.- Specified by:
incrementAppendSizein interfaceMetricsWALSource
-
incrementAppendTime
Description copied from interface:MetricsWALSourceAdd the time it took to append.- Specified by:
incrementAppendTimein interfaceMetricsWALSource
-
incrementAppendCount
Description copied from interface:MetricsWALSourceIncrement the count of wal appends- Specified by:
incrementAppendCountin interfaceMetricsWALSource
-
incrementSlowAppendCount
Description copied from interface:MetricsWALSourceIncrement the number of appends that were slow- Specified by:
incrementSlowAppendCountin interfaceMetricsWALSource
-
incrementSyncTime
Description copied from interface:MetricsWALSourceAdd the time it took to sync the wal.- Specified by:
incrementSyncTimein interfaceMetricsWALSource
-
incrementLogRollRequested
- Specified by:
incrementLogRollRequestedin interfaceMetricsWALSource
-
incrementErrorLogRoll
- Specified by:
incrementErrorLogRollin interfaceMetricsWALSource
-
incrementLowReplicationLogRoll
- Specified by:
incrementLowReplicationLogRollin interfaceMetricsWALSource
-
incrementSlowSyncLogRoll
- Specified by:
incrementSlowSyncLogRollin interfaceMetricsWALSource
-
incrementSizeLogRoll
- Specified by:
incrementSizeLogRollin interfaceMetricsWALSource
-
getSlowAppendCount
- Specified by:
getSlowAppendCountin interfaceMetricsWALSource
-
incrementWrittenBytes
- Specified by:
incrementWrittenBytesin interfaceMetricsWALSource
-
incrementSuccessfulLogRolls
Description copied from interface:MetricsWALSourceIncrement the number of successful log roll requests.- Specified by:
incrementSuccessfulLogRollsin interfaceMetricsWALSource
-
getSuccessfulLogRolls
- Specified by:
getSuccessfulLogRollsin interfaceMetricsWALSource
-