@InterfaceAudience.Private public class MetricsWALSourceImpl extends BaseSourceImpl implements MetricsWALSource
MetricsWAL
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.metrics2.lib.MutableCounterLong |
appendCount |
private MetricHistogram |
appendSizeHisto |
private MetricHistogram |
appendTimeHisto |
private org.apache.hadoop.metrics2.lib.MutableCounterLong |
logRollRequested |
private org.apache.hadoop.metrics2.lib.MutableCounterLong |
lowReplicationLogRollRequested |
private org.apache.hadoop.metrics2.lib.MutableCounterLong |
slowAppendCount |
private MetricHistogram |
syncTimeHisto |
metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry
APPEND_COUNT, APPEND_COUNT_DESC, APPEND_SIZE, APPEND_SIZE_DESC, APPEND_TIME, APPEND_TIME_DESC, LOW_REPLICA_ROLL_REQUESTED, LOW_REPLICA_ROLL_REQUESTED_DESC, METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, ROLL_REQUESTED, ROLL_REQUESTED_DESC, SLOW_APPEND_COUNT, SLOW_APPEND_COUNT_DESC, SYNC_TIME, SYNC_TIME_DESC
HBASE_METRICS_SYSTEM_NAME
Constructor and Description |
---|
MetricsWALSourceImpl() |
MetricsWALSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext) |
Modifier and Type | Method and Description |
---|---|
void |
incrementAppendCount()
Increment the count of wal appends
|
void |
incrementAppendSize(long size)
Add the append size.
|
void |
incrementAppendTime(long time)
Add the time it took to append.
|
void |
incrementLogRollRequested() |
void |
incrementLowReplicationLogRoll() |
void |
incrementSlowAppendCount()
Increment the number of appends that were slow
|
void |
incrementSyncTime(long time)
Add the time it took to sync the wal.
|
decGauge, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram, updateQuantile
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram, updateQuantile
private final MetricHistogram appendSizeHisto
private final MetricHistogram appendTimeHisto
private final MetricHistogram syncTimeHisto
private final org.apache.hadoop.metrics2.lib.MutableCounterLong appendCount
private final org.apache.hadoop.metrics2.lib.MutableCounterLong slowAppendCount
private final org.apache.hadoop.metrics2.lib.MutableCounterLong logRollRequested
private final org.apache.hadoop.metrics2.lib.MutableCounterLong lowReplicationLogRollRequested
public void incrementAppendSize(long size)
MetricsWALSource
incrementAppendSize
in interface MetricsWALSource
public void incrementAppendTime(long time)
MetricsWALSource
incrementAppendTime
in interface MetricsWALSource
public void incrementAppendCount()
MetricsWALSource
incrementAppendCount
in interface MetricsWALSource
public void incrementSlowAppendCount()
MetricsWALSource
incrementSlowAppendCount
in interface MetricsWALSource
public void incrementSyncTime(long time)
MetricsWALSource
incrementSyncTime
in interface MetricsWALSource
public void incrementLogRollRequested()
incrementLogRollRequested
in interface MetricsWALSource
public void incrementLowReplicationLogRoll()
incrementLowReplicationLogRoll
in interface MetricsWALSource
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.