@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()
MetricsRegionWrapper
getTableName
in interface MetricsRegionWrapper
public String getNamespace()
MetricsRegionWrapper
getNamespace
in interface MetricsRegionWrapper
public String getRegionName()
MetricsRegionWrapper
getRegionName
in interface MetricsRegionWrapper
public long getNumStores()
MetricsRegionWrapper
getNumStores
in interface MetricsRegionWrapper
public long getNumStoreFiles()
MetricsRegionWrapper
getNumStoreFiles
in interface MetricsRegionWrapper
public long getMemstoreSize()
MetricsRegionWrapper
getMemstoreSize
in interface MetricsRegionWrapper
public long getStoreFileSize()
MetricsRegionWrapper
getStoreFileSize
in interface MetricsRegionWrapper
public long getReadRequestCount()
MetricsRegionWrapper
getReadRequestCount
in interface MetricsRegionWrapper
public long getWriteRequestCount()
MetricsRegionWrapper
getWriteRequestCount
in interface MetricsRegionWrapper
public long getNumFilesCompacted()
getNumFilesCompacted
in interface MetricsRegionWrapper
public long getNumBytesCompacted()
getNumBytesCompacted
in interface MetricsRegionWrapper
public long getNumCompactionsCompleted()
getNumCompactionsCompleted
in interface MetricsRegionWrapper
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public Map<String,org.apache.commons.math.stat.descriptive.DescriptiveStatistics> getCoprocessorExecutionStatistics()
MetricsRegionWrapper
getCoprocessorExecutionStatistics
in interface MetricsRegionWrapper
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.