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 TypeMethodDescriptionlongReturns Average age of store files under this regionlongGet the total number of CoprocessorService requests that have been issued against this regionfloatGets the current cache % ratio for this region.longGet the total number of filtered read requests that have been issued against this regionlongReturns Age of the last major compactionlongReturns the max number of references active on any store file among all compacted store files that belong to this regionlongNote that this metric is updated periodically and hence might miss some data points.longNote that this metric is updated periodically and hence might miss some data points.longReturns Max age of store files under this regionReturns the number of row reads completely on memstore per storelongGet the size of the memstore on this region server.longReturns 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.longlonglongReturns the total number of compactions that have been reported as failed on this region.longReturns the total number of compactions that are currently queued(or being executed) at point in timelonglongReturns the total number of flushes currently queued(being executed) for this region at point in timelongReturns Number of reference files under this regionlongGet the number of store files hosted on this region server.longGet the number of stores hosted on this region server.longGet the total number of read requests that have been issued against this regionintGet the name of the region.intGet the replica id of this region.longGet the total size of the store files this region server is serving from.longReturns the number of references active on the storeGet the name of the table the region belongs to.longlongGet 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. -
getCurrentRegionCacheRatio
float getCurrentRegionCacheRatio()Gets the current cache % ratio for this region. -
getReadRequestCount
long getReadRequestCount()Get the total number of read requests that have been issued against this region -
getCpRequestCount
long getCpRequestCount()Get the total number of CoprocessorService 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()Note that this metric is updated periodically and hence might miss some data points.- Returns:
- the max number of compactions queued for this region
-
getMaxFlushQueueSize
long getMaxFlushQueueSize()Note that this metric is updated periodically and hence might miss some data points.- Returns:
- the max number of flushes queued for this region
-
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
-