@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 |
|---|---|
private long |
avgStoreFileAge |
private ScheduledExecutorService |
executor |
private static org.slf4j.Logger |
LOG |
private long |
maxCompactedStoreFileRefCount |
private long |
maxCompactionQueueSize |
private long |
maxFlushQueueSize |
private long |
maxStoreFileAge |
private long |
memstoreSize |
private long |
minStoreFileAge |
private Map<String,Long> |
mixedReadsOnStore |
private long |
numReferenceFiles |
private long |
numStoreFiles |
static int |
PERIOD |
private Map<String,Long> |
readsOnlyFromMemstore |
private HRegion |
region |
private ScheduledFuture<?> |
regionMetricsUpdateTask |
private Runnable |
runnable |
private long |
storeFileSize |
private long |
storeRefCount |
static String |
UNKNOWN |
| Constructor and Description |
|---|
MetricsRegionWrapperImpl(HRegion region) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getAvgStoreFileAge()
Returns Average age of store files under this region
|
long |
getFilteredReadRequestCount()
Get the total number of filtered read requests that have been issued against this region
|
long |
getLastMajorCompactionAge()
Returns Age of the last major compaction
|
long |
getMaxCompactedStoreFileRefCount()
Returns the max number of references active on any store file among all compacted store files
that belong to this region
|
long |
getMaxCompactionQueueSize() |
long |
getMaxFlushQueueSize() |
long |
getMaxStoreFileAge()
Returns Max age of store files under this region
|
Map<String,Long> |
getMemstoreOnlyRowReadsCount()
Returns the number of row reads completely on memstore per store
|
long |
getMemStoreSize()
Get the size of the memstore on this region server.
|
long |
getMinStoreFileAge()
Returns Min age of store files under this region
|
Map<String,Long> |
getMixedRowReadsCount()
Returns the number of row reads on memstore and file per store
|
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()
Returns the total number of compactions that are currently queued(or being executed) at point
in time
|
long |
getNumFilesCompacted() |
long |
getNumFlushesQueued()
Returns the total number of flushes currently queued(being executed) for this region at point
in time
|
long |
getNumReferenceFiles()
Returns Number of reference files under this region
|
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.
|
long |
getStoreRefCount()
Returns the number of references active on the store
|
String |
getTableName()
Get the name of the table the region belongs to.
|
long |
getTotalRequestCount() |
long |
getWriteRequestCount()
Get the total number of mutations that have been issued against this region.
|
private static final org.slf4j.Logger LOG
public static final int PERIOD
public static final String UNKNOWN
private ScheduledExecutorService executor
private long numStoreFiles
private long storeRefCount
private long maxCompactedStoreFileRefCount
private long memstoreSize
private long storeFileSize
private long maxStoreFileAge
private long minStoreFileAge
private long avgStoreFileAge
private long numReferenceFiles
private long maxFlushQueueSize
private long maxCompactionQueueSize
private Map<String,Long> readsOnlyFromMemstore
private Map<String,Long> mixedReadsOnStore
private ScheduledFuture<?> regionMetricsUpdateTask
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 getStoreRefCount()
MetricsRegionWrappergetStoreRefCount in interface MetricsRegionWrapperpublic long getMaxCompactedStoreFileRefCount()
MetricsRegionWrappergetMaxCompactedStoreFileRefCount in interface MetricsRegionWrapperpublic long getReadRequestCount()
MetricsRegionWrappergetReadRequestCount in interface MetricsRegionWrapperpublic long getFilteredReadRequestCount()
MetricsRegionWrappergetFilteredReadRequestCount 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()
MetricsRegionWrappergetLastMajorCompactionAge in interface MetricsRegionWrapperpublic long getTotalRequestCount()
getTotalRequestCount in interface MetricsRegionWrapperpublic long getNumCompactionsFailed()
MetricsRegionWrapperHRegion.compact().getNumCompactionsFailed in interface MetricsRegionWrapperpublic long getNumCompactionsQueued()
MetricsRegionWrappergetNumCompactionsQueued in interface MetricsRegionWrapperpublic long getNumFlushesQueued()
MetricsRegionWrappergetNumFlushesQueued in interface MetricsRegionWrapperpublic long getMaxCompactionQueueSize()
getMaxCompactionQueueSize in interface MetricsRegionWrapperpublic long getMaxFlushQueueSize()
getMaxFlushQueueSize in interface MetricsRegionWrapperpublic long getMaxStoreFileAge()
MetricsRegionWrappergetMaxStoreFileAge in interface MetricsRegionWrapperpublic long getMinStoreFileAge()
MetricsRegionWrappergetMinStoreFileAge in interface MetricsRegionWrapperpublic long getAvgStoreFileAge()
MetricsRegionWrappergetAvgStoreFileAge in interface MetricsRegionWrapperpublic long getNumReferenceFiles()
MetricsRegionWrappergetNumReferenceFiles in interface MetricsRegionWrapperpublic int getRegionHashCode()
getRegionHashCode in interface MetricsRegionWrapperpublic Map<String,Long> getMemstoreOnlyRowReadsCount()
MetricsRegionWrappergetMemstoreOnlyRowReadsCount in interface MetricsRegionWrapperpublic Map<String,Long> getMixedRowReadsCount()
MetricsRegionWrappergetMixedRowReadsCount in interface MetricsRegionWrapperpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic int getReplicaId()
getReplicaId in interface MetricsRegionWrapperCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.