Interface MetricsRegionWrapper
- All Known Implementing Classes:
MetricsRegionWrapperImpl
Interface of class that will wrap an HRegion and export numbers so they can be used in
MetricsRegionSource
-
Method Summary
Modifier and TypeMethodDescriptionlong
Returns Average age of store files under this regionlong
Get the total number of filtered read requests that have been issued against this regionlong
Returns Age of the last major compactionlong
Returns the max number of references active on any store file among all compacted store files that belong to this regionlong
long
long
Returns Max age of store files under this regionReturns the number of row reads completely on memstore per storelong
Get the size of the memstore on this region server.long
Returns Min age of store files under this regionReturns the number of row reads on memstore and file per storeGet the name of the namespace this table is in.long
long
long
Returns the total number of compactions that have been reported as failed on this region.long
Returns the total number of compactions that are currently queued(or being executed) at point in timelong
long
Returns the total number of flushes currently queued(being executed) for this region at point in timelong
Returns Number of reference files under this regionlong
Get the number of store files hosted on this region server.long
Get the number of stores hosted on this region server.long
Get the total number of read requests that have been issued against this regionint
Get the name of the region.int
Get the replica id of this region.long
Get the total size of the store files this region server is serving from.long
Returns the number of references active on the storeGet the name of the table the region belongs to.long
long
Get the total number of mutations that have been issued against this region.
-
Method Details
-
getTableName
Get the name of the table the region belongs to.- Returns:
- The string version of the table name.
-
getNamespace
Get the name of the namespace this table is in.- Returns:
- String version of the namespace. Can't be empty.
-
getRegionName
Get the name of the region.- Returns:
- The encoded name of the region.
-
getNumStores
long getNumStores()Get the number of stores hosted on this region server. -
getNumStoreFiles
long getNumStoreFiles()Get the number of store files hosted on this region server. -
getMemStoreSize
long getMemStoreSize()Get the size of the memstore on this region server. -
getStoreFileSize
long getStoreFileSize()Get the total size of the store files this region server is serving from. -
getReadRequestCount
long getReadRequestCount()Get the total number of read requests that have been issued against this region -
getFilteredReadRequestCount
long getFilteredReadRequestCount()Get the total number of filtered read requests that have been issued against this region -
getMaxStoreFileAge
long getMaxStoreFileAge()Returns Max age of store files under this region -
getMinStoreFileAge
long getMinStoreFileAge()Returns Min age of store files under this region -
getAvgStoreFileAge
long getAvgStoreFileAge()Returns Average age of store files under this region -
getNumReferenceFiles
long getNumReferenceFiles()Returns Number of reference files under this region -
getWriteRequestCount
long getWriteRequestCount()Get the total number of mutations that have been issued against this region. -
getTotalRequestCount
long getTotalRequestCount() -
getNumFilesCompacted
long getNumFilesCompacted() -
getNumBytesCompacted
long getNumBytesCompacted() -
getNumCompactionsCompleted
long getNumCompactionsCompleted() -
getLastMajorCompactionAge
long getLastMajorCompactionAge()Returns Age of the last major compaction -
getNumCompactionsFailed
long getNumCompactionsFailed()Returns the total number of compactions that have been reported as failed on this region. Note that a given compaction can be reported as both completed and failed if an exception is thrown in the processing afterHRegion.compact()
. -
getNumCompactionsQueued
long getNumCompactionsQueued()Returns the total number of compactions that are currently queued(or being executed) at point in time -
getNumFlushesQueued
long getNumFlushesQueued()Returns the total number of flushes currently queued(being executed) for this region at point in time -
getMaxCompactionQueueSize
long getMaxCompactionQueueSize()- Returns:
- the max number of compactions queued for this region Note that this metric is updated periodically and hence might miss some data points
-
getMaxFlushQueueSize
long getMaxFlushQueueSize()- Returns:
- the max number of flushes queued for this region Note that this metric is updated periodically and hence might miss some data points
-
getRegionHashCode
int getRegionHashCode() -
getReplicaId
int getReplicaId()Get the replica id of this region. -
getStoreRefCount
long getStoreRefCount()Returns the number of references active on the store -
getMaxCompactedStoreFileRefCount
Returns the max number of references active on any store file among all compacted store files that belong to this region -
getMemstoreOnlyRowReadsCount
Returns the number of row reads completely on memstore per store -
getMixedRowReadsCount
Returns the number of row reads on memstore and file per store
-