org.apache.hadoop.hbase.regionserver
Class MetricsRegionWrapperImpl

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.MetricsRegionWrapperImpl
All Implemented Interfaces:
Closeable, MetricsRegionWrapper

@InterfaceAudience.Private
public class MetricsRegionWrapperImpl
extends Object
implements MetricsRegionWrapper, Closeable


Nested Class Summary
 class MetricsRegionWrapperImpl.HRegionMetricsWrapperRunnable
           
 
Field Summary
static int PERIOD
           
static String UNKNOWN
           
 
Constructor Summary
MetricsRegionWrapperImpl(HRegion region)
           
 
Method Summary
 void close()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PERIOD

public static final int PERIOD
See Also:
Constant Field Values

UNKNOWN

public static final String UNKNOWN
See Also:
Constant Field Values
Constructor Detail

MetricsRegionWrapperImpl

public MetricsRegionWrapperImpl(HRegion region)
Method Detail

getTableName

public String getTableName()
Description copied from interface: MetricsRegionWrapper
Get the name of the table the region belongs to.

Specified by:
getTableName in interface MetricsRegionWrapper
Returns:
The string version of the table name.

getNamespace

public String getNamespace()
Description copied from interface: MetricsRegionWrapper
Get the name of the namespace this table is in.

Specified by:
getNamespace in interface MetricsRegionWrapper
Returns:
String version of the namespace. Can't be empty.

getRegionName

public String getRegionName()
Description copied from interface: MetricsRegionWrapper
Get the name of the region.

Specified by:
getRegionName in interface MetricsRegionWrapper
Returns:
The encoded name of the region.

getNumStores

public long getNumStores()
Description copied from interface: MetricsRegionWrapper
Get the number of stores hosted on this region server.

Specified by:
getNumStores in interface MetricsRegionWrapper

getNumStoreFiles

public long getNumStoreFiles()
Description copied from interface: MetricsRegionWrapper
Get the number of store files hosted on this region server.

Specified by:
getNumStoreFiles in interface MetricsRegionWrapper

getMemstoreSize

public long getMemstoreSize()
Description copied from interface: MetricsRegionWrapper
Get the size of the memstore on this region server.

Specified by:
getMemstoreSize in interface MetricsRegionWrapper

getStoreFileSize

public long getStoreFileSize()
Description copied from interface: MetricsRegionWrapper
Get the total size of the store files this region server is serving from.

Specified by:
getStoreFileSize in interface MetricsRegionWrapper

getReadRequestCount

public long getReadRequestCount()
Description copied from interface: MetricsRegionWrapper
Get the total number of read requests that have been issued against this region

Specified by:
getReadRequestCount in interface MetricsRegionWrapper

getWriteRequestCount

public long getWriteRequestCount()
Description copied from interface: MetricsRegionWrapper
Get the total number of mutations that have been issued against this region.

Specified by:
getWriteRequestCount in interface MetricsRegionWrapper

getNumFilesCompacted

public long getNumFilesCompacted()
Specified by:
getNumFilesCompacted in interface MetricsRegionWrapper

getNumBytesCompacted

public long getNumBytesCompacted()
Specified by:
getNumBytesCompacted in interface MetricsRegionWrapper

getNumCompactionsCompleted

public long getNumCompactionsCompleted()
Specified by:
getNumCompactionsCompleted in interface MetricsRegionWrapper

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

getCoprocessorExecutionStatistics

public Map<String,org.apache.commons.math.stat.descriptive.DescriptiveStatistics> getCoprocessorExecutionStatistics()
Description copied from interface: MetricsRegionWrapper
Get the time spent by coprocessors in this region.

Specified by:
getCoprocessorExecutionStatistics in interface MetricsRegionWrapper


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