org.apache.hadoop.hbase.regionserver.wal
Class MetricsWALSourceImpl

java.lang.Object
  extended by org.apache.hadoop.hbase.metrics.BaseSourceImpl
      extended by 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.


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry
 
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, 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, WRITTEN_BYTES, WRITTEN_BYTES_DESC
 
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
 
Constructor Summary
MetricsWALSourceImpl()
           
MetricsWALSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
           
 
Method Summary
 void incrementAppendCount()
          Increment the count of hlog 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 hlog.
 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, 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
 

Constructor Detail

MetricsWALSourceImpl

public MetricsWALSourceImpl()

MetricsWALSourceImpl

public MetricsWALSourceImpl(String metricsName,
                            String metricsDescription,
                            String metricsContext,
                            String metricsJmxContext)
Method Detail

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

incrementLogRollRequested

public void incrementLogRollRequested()
Specified by:
incrementLogRollRequested in interface MetricsWALSource

incrementLowReplicationLogRoll

public void incrementLowReplicationLogRoll()
Specified by:
incrementLowReplicationLogRoll in interface MetricsWALSource

incrementWrittenBytes

public void incrementWrittenBytes(long val)
Specified by:
incrementWrittenBytes in interface MetricsWALSource


Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.