org.apache.hadoop.hbase.regionserver
Interface MetricsRegionWrapper

All Known Implementing Classes:
MetricsRegionWrapperImpl

public interface MetricsRegionWrapper

Interface of class that will wrap an HRegion and export numbers so they can be used in MetricsRegionSource


Method Summary
 Map<String,org.apache.commons.math.stat.descriptive.DescriptiveStatistics> getCoprocessorExecutionStatistics()
          Get the time spent by coprocessors in this region.
 long getMemstoreSize()
          Get the size of the memstore on this region server.
 String getNamespace()
          Get the name of the namespace this table is in.
 long getNumBytesCompacted()
           
 long getNumCompactionsCompleted()
           
 long getNumFilesCompacted()
           
 long getNumStoreFiles()
          Get the number of store files hosted on this region server.
 long getNumStores()
          Get the number of stores hosted on this region server.
 long getReadRequestCount()
          Get the total number of read requests that have been issued against this region
 String getRegionName()
          Get the name of the region.
 long getStoreFileSize()
          Get the total size of the store files this region server is serving from.
 String getTableName()
          Get the name of the table the region belongs to.
 long getWriteRequestCount()
          Get the total number of mutations that have been issued against this region.
 

Method Detail

getTableName

String getTableName()
Get the name of the table the region belongs to.

Returns:
The string version of the table name.

getNamespace

String getNamespace()
Get the name of the namespace this table is in.

Returns:
String version of the namespace. Can't be empty.

getRegionName

String getRegionName()
Get the name of the region.

Returns:
The encoded name of the region.

getNumStores

long getNumStores()
Get the number of stores hosted on this region server.


getNumStoreFiles

long getNumStoreFiles()
Get the number of store files hosted on this region server.


getMemstoreSize

long getMemstoreSize()
Get the size of the memstore on this region server.


getStoreFileSize

long getStoreFileSize()
Get the total size of the store files this region server is serving from.


getReadRequestCount

long getReadRequestCount()
Get the total number of read requests that have been issued against this region


getWriteRequestCount

long getWriteRequestCount()
Get the total number of mutations that have been issued against this region.


getNumFilesCompacted

long getNumFilesCompacted()

getNumBytesCompacted

long getNumBytesCompacted()

getNumCompactionsCompleted

long getNumCompactionsCompleted()

getCoprocessorExecutionStatistics

Map<String,org.apache.commons.math.stat.descriptive.DescriptiveStatistics> getCoprocessorExecutionStatistics()
Get the time spent by coprocessors in this region.



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