@InterfaceAudience.Private public class MetricsWALSourceImpl extends BaseSourceImpl implements MetricsWALSource
MetricsWALSource
Modifier and Type | Field and Description |
---|---|
private MutableFastCounter |
appendCount |
private MetricHistogram |
appendSizeHisto |
private MetricHistogram |
appendTimeHisto |
private MutableFastCounter |
errorRollRequested |
private MutableFastCounter |
logRollRequested |
private MutableFastCounter |
lowReplicationRollRequested |
private ConcurrentMap<TableName,MutableFastCounter> |
perTableAppendCount |
private ConcurrentMap<TableName,MutableFastCounter> |
perTableAppendSize |
private MutableFastCounter |
sizeRollRequested |
private MutableFastCounter |
slowAppendCount |
private MutableFastCounter |
slowSyncRollRequested |
private MutableFastCounter |
successfulLogRolls |
private MetricHistogram |
syncTimeHisto |
private MutableFastCounter |
writtenBytes |
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registry
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
HBASE_METRICS_SYSTEM_NAME
Constructor and Description |
---|
MetricsWALSourceImpl() |
MetricsWALSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext) |
Modifier and Type | Method and Description |
---|---|
long |
getSlowAppendCount() |
long |
getSuccessfulLogRolls() |
void |
incrementAppendCount(TableName tableName)
Increment the count of wal appends
|
void |
incrementAppendSize(TableName tableName,
long size)
Add the append size.
|
void |
incrementAppendTime(long time)
Add the time it took to append.
|
void |
incrementErrorLogRoll() |
void |
incrementLogRollRequested() |
void |
incrementLowReplicationLogRoll() |
void |
incrementSizeLogRoll() |
void |
incrementSlowAppendCount()
Increment the number of appends that were slow
|
void |
incrementSlowSyncLogRoll() |
void |
incrementSuccessfulLogRolls()
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) |
decGauge, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
private final MetricHistogram appendSizeHisto
private final MetricHistogram appendTimeHisto
private final MetricHistogram syncTimeHisto
private final MutableFastCounter appendCount
private final MutableFastCounter slowAppendCount
private final MutableFastCounter logRollRequested
private final MutableFastCounter errorRollRequested
private final MutableFastCounter lowReplicationRollRequested
private final MutableFastCounter slowSyncRollRequested
private final MutableFastCounter sizeRollRequested
private final MutableFastCounter writtenBytes
private final MutableFastCounter successfulLogRolls
private final ConcurrentMap<TableName,MutableFastCounter> perTableAppendCount
private final ConcurrentMap<TableName,MutableFastCounter> perTableAppendSize
public MetricsWALSourceImpl()
public MetricsWALSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
public void incrementAppendSize(TableName tableName, long size)
MetricsWALSource
incrementAppendSize
in interface MetricsWALSource
public void incrementAppendTime(long time)
MetricsWALSource
incrementAppendTime
in interface MetricsWALSource
public void incrementAppendCount(TableName tableName)
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 incrementErrorLogRoll()
incrementErrorLogRoll
in interface MetricsWALSource
public void incrementLowReplicationLogRoll()
incrementLowReplicationLogRoll
in interface MetricsWALSource
public void incrementSlowSyncLogRoll()
incrementSlowSyncLogRoll
in interface MetricsWALSource
public void incrementSizeLogRoll()
incrementSizeLogRoll
in interface MetricsWALSource
public long getSlowAppendCount()
getSlowAppendCount
in interface MetricsWALSource
public void incrementWrittenBytes(long val)
incrementWrittenBytes
in interface MetricsWALSource
public void incrementSuccessfulLogRolls()
MetricsWALSource
incrementSuccessfulLogRolls
in interface MetricsWALSource
public long getSuccessfulLogRolls()
getSuccessfulLogRolls
in interface MetricsWALSource
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.