org.apache.hadoop.hbase.regionserver.wal
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
public class MetricsWALSourceImpl
- extends BaseSourceImpl
- implements MetricsWALSource
Class that transitions metrics from HLog's MetricsWAL into the metrics subsystem.
Implements BaseSource through BaseSourceImpl, following the pattern.
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, METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, SLOW_APPEND_COUNT, SLOW_APPEND_COUNT_DESC, SYNC_TIME, SYNC_TIME_DESC |
Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl |
decGauge, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram, updateQuantile |
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, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram, updateQuantile |
MetricsWALSourceImpl
public MetricsWALSourceImpl()
MetricsWALSourceImpl
public MetricsWALSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext)
incrementAppendSize
public void incrementAppendSize(long size)
- Description copied from interface:
MetricsWALSource
- Add the append size.
- Specified by:
incrementAppendSize
in interface MetricsWALSource
incrementAppendTime
public void incrementAppendTime(long time)
- Description copied from interface:
MetricsWALSource
- Add the time it took to append.
- Specified by:
incrementAppendTime
in interface MetricsWALSource
incrementAppendCount
public void incrementAppendCount()
- Description copied from interface:
MetricsWALSource
- Increment the count of hlog appends
- Specified by:
incrementAppendCount
in interface MetricsWALSource
incrementSlowAppendCount
public void incrementSlowAppendCount()
- Description copied from interface:
MetricsWALSource
- Increment the number of appends that were slow
- Specified by:
incrementSlowAppendCount
in interface MetricsWALSource
incrementSyncTime
public void incrementSyncTime(long time)
- Description copied from interface:
MetricsWALSource
- Add the time it took to sync the hlog.
- Specified by:
incrementSyncTime
in interface MetricsWALSource
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.