org.apache.hadoop.hbase.regionserver.wal
Interface MetricsWALSource

All Superinterfaces:
BaseSource
All Known Implementing Classes:
MetricsWALSourceImpl

public interface MetricsWALSource
extends BaseSource

Interface of the source that will export metrics about the region server's HLog.


Field Summary
static String APPEND_COUNT
           
static String APPEND_COUNT_DESC
           
static String APPEND_SIZE
           
static String APPEND_SIZE_DESC
           
static String APPEND_TIME
           
static String APPEND_TIME_DESC
           
static String LOW_REPLICA_ROLL_REQUESTED
           
static String LOW_REPLICA_ROLL_REQUESTED_DESC
           
static String METRICS_CONTEXT
          The name of the metrics context that metrics will be under.
static String METRICS_DESCRIPTION
          Description
static String METRICS_JMX_CONTEXT
          The name of the metrics context that metrics will be under in jmx
static String METRICS_NAME
          The name of the metrics
static String ROLL_REQUESTED
           
static String ROLL_REQUESTED_DESC
           
static String SLOW_APPEND_COUNT
           
static String SLOW_APPEND_COUNT_DESC
           
static String SYNC_TIME
           
static String SYNC_TIME_DESC
           
static String WRITTEN_BYTES
           
static String WRITTEN_BYTES_DESC
           
 
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
 
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 interface org.apache.hadoop.hbase.metrics.BaseSource
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram, updateQuantile
 

Field Detail

METRICS_NAME

static final String METRICS_NAME
The name of the metrics

See Also:
Constant Field Values

METRICS_CONTEXT

static final String METRICS_CONTEXT
The name of the metrics context that metrics will be under.

See Also:
Constant Field Values

METRICS_DESCRIPTION

static final String METRICS_DESCRIPTION
Description

See Also:
Constant Field Values

METRICS_JMX_CONTEXT

static final String METRICS_JMX_CONTEXT
The name of the metrics context that metrics will be under in jmx

See Also:
Constant Field Values

APPEND_TIME

static final String APPEND_TIME
See Also:
Constant Field Values

APPEND_TIME_DESC

static final String APPEND_TIME_DESC
See Also:
Constant Field Values

APPEND_COUNT

static final String APPEND_COUNT
See Also:
Constant Field Values

APPEND_COUNT_DESC

static final String APPEND_COUNT_DESC
See Also:
Constant Field Values

APPEND_SIZE

static final String APPEND_SIZE
See Also:
Constant Field Values

APPEND_SIZE_DESC

static final String APPEND_SIZE_DESC
See Also:
Constant Field Values

SLOW_APPEND_COUNT

static final String SLOW_APPEND_COUNT
See Also:
Constant Field Values

SLOW_APPEND_COUNT_DESC

static final String SLOW_APPEND_COUNT_DESC
See Also:
Constant Field Values

SYNC_TIME

static final String SYNC_TIME
See Also:
Constant Field Values

SYNC_TIME_DESC

static final String SYNC_TIME_DESC
See Also:
Constant Field Values

ROLL_REQUESTED

static final String ROLL_REQUESTED
See Also:
Constant Field Values

ROLL_REQUESTED_DESC

static final String ROLL_REQUESTED_DESC
See Also:
Constant Field Values

LOW_REPLICA_ROLL_REQUESTED

static final String LOW_REPLICA_ROLL_REQUESTED
See Also:
Constant Field Values

LOW_REPLICA_ROLL_REQUESTED_DESC

static final String LOW_REPLICA_ROLL_REQUESTED_DESC
See Also:
Constant Field Values

WRITTEN_BYTES

static final String WRITTEN_BYTES
See Also:
Constant Field Values

WRITTEN_BYTES_DESC

static final String WRITTEN_BYTES_DESC
See Also:
Constant Field Values
Method Detail

incrementAppendSize

void incrementAppendSize(long size)
Add the append size.


incrementAppendTime

void incrementAppendTime(long time)
Add the time it took to append.


incrementAppendCount

void incrementAppendCount()
Increment the count of hlog appends


incrementSlowAppendCount

void incrementSlowAppendCount()
Increment the number of appends that were slow


incrementSyncTime

void incrementSyncTime(long time)
Add the time it took to sync the hlog.


incrementLogRollRequested

void incrementLogRollRequested()

incrementLowReplicationLogRoll

void incrementLowReplicationLogRoll()

incrementWrittenBytes

void incrementWrittenBytes(long val)


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