org.apache.hadoop.hbase.regionserver
Interface MetricsRegionSource

All Superinterfaces:
Comparable<MetricsRegionSource>
All Known Implementing Classes:
MetricsRegionSourceImpl

public interface MetricsRegionSource
extends Comparable<MetricsRegionSource>

This interface will be implemented to allow single regions to push metrics into MetricsRegionAggregateSource that will in turn push data to the Hadoop metrics system.


Field Summary
static String COMPACTIONS_COMPLETED_COUNT
           
static String COMPACTIONS_COMPLETED_DESC
           
static String COPROCESSOR_EXECUTION_STATISTICS
           
static String COPROCESSOR_EXECUTION_STATISTICS_DESC
           
static String NUM_BYTES_COMPACTED_COUNT
           
static String NUM_BYTES_COMPACTED_DESC
           
static String NUM_FILES_COMPACTED_COUNT
           
static String NUM_FILES_COMPACTED_DESC
           
static String OPS_SAMPLE_NAME
           
static String SIZE_VALUE_NAME
           
 
Method Summary
 void close()
          Close the region's metrics as this region is closing.
 MetricsRegionAggregateSource getAggregateSource()
          Get the aggregate source to which this reports.
 void updateAppend()
          Update related counts of appends.
 void updateDelete()
          Update related counts of deletes.
 void updateGet(long getSize)
          Update count and sizes of gets.
 void updateIncrement()
          Update related counts of increments.
 void updatePut()
          Update related counts of puts.
 void updateScan(long scanSize)
          Update the count and sizes of resultScanner.next()
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

OPS_SAMPLE_NAME

static final String OPS_SAMPLE_NAME
See Also:
Constant Field Values

SIZE_VALUE_NAME

static final String SIZE_VALUE_NAME
See Also:
Constant Field Values

COMPACTIONS_COMPLETED_COUNT

static final String COMPACTIONS_COMPLETED_COUNT
See Also:
Constant Field Values

NUM_BYTES_COMPACTED_COUNT

static final String NUM_BYTES_COMPACTED_COUNT
See Also:
Constant Field Values

NUM_FILES_COMPACTED_COUNT

static final String NUM_FILES_COMPACTED_COUNT
See Also:
Constant Field Values

COMPACTIONS_COMPLETED_DESC

static final String COMPACTIONS_COMPLETED_DESC
See Also:
Constant Field Values

NUM_BYTES_COMPACTED_DESC

static final String NUM_BYTES_COMPACTED_DESC
See Also:
Constant Field Values

NUM_FILES_COMPACTED_DESC

static final String NUM_FILES_COMPACTED_DESC
See Also:
Constant Field Values

COPROCESSOR_EXECUTION_STATISTICS

static final String COPROCESSOR_EXECUTION_STATISTICS
See Also:
Constant Field Values

COPROCESSOR_EXECUTION_STATISTICS_DESC

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

close

void close()
Close the region's metrics as this region is closing.


updatePut

void updatePut()
Update related counts of puts.


updateDelete

void updateDelete()
Update related counts of deletes.


updateGet

void updateGet(long getSize)
Update count and sizes of gets.

Parameters:
getSize - size in bytes of the resulting key values for a get

updateScan

void updateScan(long scanSize)
Update the count and sizes of resultScanner.next()

Parameters:
scanSize - Size in bytes of the resulting key values for a next()

updateIncrement

void updateIncrement()
Update related counts of increments.


updateAppend

void updateAppend()
Update related counts of appends.


getAggregateSource

MetricsRegionAggregateSource getAggregateSource()
Get the aggregate source to which this reports.



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