@InterfaceAudience.Private public class MetricsRegionWrapperImpl extends Object implements MetricsRegionWrapper, Closeable
| Modifier and Type | Class and Description |
|---|---|
class |
MetricsRegionWrapperImpl.HRegionMetricsWrapperRunnable |
| Modifier and Type | Field and Description |
|---|---|
static int |
PERIOD |
static String |
UNKNOWN |
| Constructor and Description |
|---|
MetricsRegionWrapperImpl(HRegion region) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final int PERIOD
public static final String UNKNOWN
public MetricsRegionWrapperImpl(HRegion region)
public String getTableName()
MetricsRegionWrappergetTableName in interface MetricsRegionWrapperpublic String getNamespace()
MetricsRegionWrappergetNamespace in interface MetricsRegionWrapperpublic String getRegionName()
MetricsRegionWrappergetRegionName in interface MetricsRegionWrapperpublic long getNumStores()
MetricsRegionWrappergetNumStores in interface MetricsRegionWrapperpublic long getNumStoreFiles()
MetricsRegionWrappergetNumStoreFiles in interface MetricsRegionWrapperpublic long getMemstoreSize()
MetricsRegionWrappergetMemstoreSize in interface MetricsRegionWrapperpublic long getStoreFileSize()
MetricsRegionWrappergetStoreFileSize in interface MetricsRegionWrapperpublic long getReadRequestCount()
MetricsRegionWrappergetReadRequestCount in interface MetricsRegionWrapperpublic long getWriteRequestCount()
MetricsRegionWrappergetWriteRequestCount in interface MetricsRegionWrapperpublic long getNumFilesCompacted()
getNumFilesCompacted in interface MetricsRegionWrapperpublic long getNumBytesCompacted()
getNumBytesCompacted in interface MetricsRegionWrapperpublic long getNumCompactionsCompleted()
getNumCompactionsCompleted in interface MetricsRegionWrapperpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic Map<String,org.apache.commons.math.stat.descriptive.DescriptiveStatistics> getCoprocessorExecutionStatistics()
MetricsRegionWrappergetCoprocessorExecutionStatistics in interface MetricsRegionWrapperCopyright © 2014 The Apache Software Foundation. All rights reserved.