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
Modifier and TypeFieldDescriptionprivate final MutableFastCounter
private final MetricHistogram
private final MetricHistogram
private final MutableFastCounter
private final MutableFastCounter
private final MutableFastCounter
private final ConcurrentMap<TableName,
MutableFastCounter> private final ConcurrentMap<TableName,
MutableFastCounter> private final MutableFastCounter
private final MutableFastCounter
private final MutableFastCounter
private final MutableFastCounter
private final MetricHistogram
private final MutableFastCounter
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.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
ConstructorDescriptionMetricsWALSourceImpl
(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext) -
Method Summary
Modifier and TypeMethodDescriptionlong
long
void
incrementAppendCount
(TableName tableName) Increment the count of wal appendsvoid
incrementAppendSize
(TableName tableName, long size) Add the append size.void
incrementAppendTime
(long time) Add the time it took to append.void
void
void
void
void
Increment the number of appends that were slowvoid
void
Increment the number of successful log roll requests.void
incrementSyncTime
(long time) Add the time it took to sync the wal.void
incrementWrittenBytes
(long val) Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
decGauge, getMetrics, 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
-
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:MetricsWALSource
Add the append size.- Specified by:
incrementAppendSize
in interfaceMetricsWALSource
-
incrementAppendTime
Description copied from interface:MetricsWALSource
Add the time it took to append.- Specified by:
incrementAppendTime
in interfaceMetricsWALSource
-
incrementAppendCount
Description copied from interface:MetricsWALSource
Increment the count of wal appends- Specified by:
incrementAppendCount
in interfaceMetricsWALSource
-
incrementSlowAppendCount
Description copied from interface:MetricsWALSource
Increment the number of appends that were slow- Specified by:
incrementSlowAppendCount
in interfaceMetricsWALSource
-
incrementSyncTime
Description copied from interface:MetricsWALSource
Add the time it took to sync the wal.- Specified by:
incrementSyncTime
in interfaceMetricsWALSource
-
incrementLogRollRequested
- Specified by:
incrementLogRollRequested
in interfaceMetricsWALSource
-
incrementErrorLogRoll
- Specified by:
incrementErrorLogRoll
in interfaceMetricsWALSource
-
incrementLowReplicationLogRoll
- Specified by:
incrementLowReplicationLogRoll
in interfaceMetricsWALSource
-
incrementSlowSyncLogRoll
- Specified by:
incrementSlowSyncLogRoll
in interfaceMetricsWALSource
-
incrementSizeLogRoll
- Specified by:
incrementSizeLogRoll
in interfaceMetricsWALSource
-
getSlowAppendCount
- Specified by:
getSlowAppendCount
in interfaceMetricsWALSource
-
incrementWrittenBytes
- Specified by:
incrementWrittenBytes
in interfaceMetricsWALSource
-
incrementSuccessfulLogRolls
Description copied from interface:MetricsWALSource
Increment the number of successful log roll requests.- Specified by:
incrementSuccessfulLogRolls
in interfaceMetricsWALSource
-
getSuccessfulLogRolls
- Specified by:
getSuccessfulLogRolls
in interfaceMetricsWALSource
-