@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() |
long |
getAvgStoreFileAge() |
long |
getLastMajorCompactionAge() |
long |
getMaxCompactionQueueSize() |
long |
getMaxFlushQueueSize() |
long |
getMaxStoreFileAge() |
long |
getMemstoreSize()
Get the size of the memstore on this region server.
|
long |
getMinStoreFileAge() |
String |
getNamespace()
Get the name of the namespace this table is in.
|
long |
getNumBytesCompacted() |
long |
getNumCompactionsCompleted() |
long |
getNumCompactionsFailed()
Returns the total number of compactions that have been reported as failed on this region.
|
long |
getNumCompactionsQueued() |
long |
getNumFilesCompacted() |
long |
getNumFlushesQueued() |
long |
getNumReferenceFiles() |
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
|
int |
getRegionHashCode() |
String |
getRegionName()
Get the name of the region.
|
int |
getReplicaId()
Get the replica id of this 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 long getLastMajorCompactionAge()
getLastMajorCompactionAge in interface MetricsRegionWrapperpublic long getNumCompactionsFailed()
MetricsRegionWrapperHRegion.compact().getNumCompactionsFailed in interface MetricsRegionWrapperpublic long getNumCompactionsQueued()
getNumCompactionsQueued in interface MetricsRegionWrapperpublic long getNumFlushesQueued()
getNumFlushesQueued in interface MetricsRegionWrapperpublic long getMaxCompactionQueueSize()
getMaxCompactionQueueSize in interface MetricsRegionWrapperpublic long getMaxFlushQueueSize()
getMaxFlushQueueSize in interface MetricsRegionWrapperpublic long getMaxStoreFileAge()
getMaxStoreFileAge in interface MetricsRegionWrapperpublic long getMinStoreFileAge()
getMinStoreFileAge in interface MetricsRegionWrapperpublic long getAvgStoreFileAge()
getAvgStoreFileAge in interface MetricsRegionWrapperpublic long getNumReferenceFiles()
getNumReferenceFiles in interface MetricsRegionWrapperpublic int getRegionHashCode()
getRegionHashCode in interface MetricsRegionWrapperpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic int getReplicaId()
getReplicaId in interface MetricsRegionWrapperCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.