Class MetricsRegionWrapperImpl
java.lang.Object
org.apache.hadoop.hbase.regionserver.MetricsRegionWrapperImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,MetricsRegionWrapper
@Private
public class MetricsRegionWrapperImpl
extends Object
implements MetricsRegionWrapper, Closeable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate ScheduledExecutorServiceprivate static final org.slf4j.Loggerprivate longprivate longprivate longprivate longprivate longprivate longprivate longprivate longstatic final intprivate final HRegionprivate ScheduledFuture<?>private Runnableprivate longprivate longstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longReturns Average age of store files under this regionlongGet 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 regionlonglonglongReturns 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.
-
Field Details
-
LOG
-
PERIOD
- See Also:
-
UNKNOWN
- See Also:
-
region
-
executor
-
runnable
-
numStoreFiles
-
storeRefCount
-
maxCompactedStoreFileRefCount
-
memstoreSize
-
storeFileSize
-
maxStoreFileAge
-
minStoreFileAge
-
avgStoreFileAge
-
numReferenceFiles
-
maxFlushQueueSize
-
maxCompactionQueueSize
-
readsOnlyFromMemstore
-
mixedReadsOnStore
-
regionMetricsUpdateTask
-
-
Constructor Details
-
MetricsRegionWrapperImpl
-
-
Method Details
-
getTableName
Description copied from interface:MetricsRegionWrapperGet the name of the table the region belongs to.- Specified by:
getTableNamein interfaceMetricsRegionWrapper- Returns:
- The string version of the table name.
-
getNamespace
Description copied from interface:MetricsRegionWrapperGet the name of the namespace this table is in.- Specified by:
getNamespacein interfaceMetricsRegionWrapper- Returns:
- String version of the namespace. Can't be empty.
-
getRegionName
Description copied from interface:MetricsRegionWrapperGet the name of the region.- Specified by:
getRegionNamein interfaceMetricsRegionWrapper- Returns:
- The encoded name of the region.
-
getNumStores
Description copied from interface:MetricsRegionWrapperGet the number of stores hosted on this region server.- Specified by:
getNumStoresin interfaceMetricsRegionWrapper
-
getNumStoreFiles
Description copied from interface:MetricsRegionWrapperGet the number of store files hosted on this region server.- Specified by:
getNumStoreFilesin interfaceMetricsRegionWrapper
-
getMemStoreSize
Description copied from interface:MetricsRegionWrapperGet the size of the memstore on this region server.- Specified by:
getMemStoreSizein interfaceMetricsRegionWrapper
-
getStoreFileSize
Description copied from interface:MetricsRegionWrapperGet the total size of the store files this region server is serving from.- Specified by:
getStoreFileSizein interfaceMetricsRegionWrapper
-
getStoreRefCount
Description copied from interface:MetricsRegionWrapperReturns the number of references active on the store- Specified by:
getStoreRefCountin interfaceMetricsRegionWrapper
-
getMaxCompactedStoreFileRefCount
Description copied from interface:MetricsRegionWrapperReturns the max number of references active on any store file among all compacted store files that belong to this region- Specified by:
getMaxCompactedStoreFileRefCountin interfaceMetricsRegionWrapper
-
getReadRequestCount
Description copied from interface:MetricsRegionWrapperGet the total number of read requests that have been issued against this region- Specified by:
getReadRequestCountin interfaceMetricsRegionWrapper
-
getFilteredReadRequestCount
Description copied from interface:MetricsRegionWrapperGet the total number of filtered read requests that have been issued against this region- Specified by:
getFilteredReadRequestCountin interfaceMetricsRegionWrapper
-
getWriteRequestCount
Description copied from interface:MetricsRegionWrapperGet the total number of mutations that have been issued against this region.- Specified by:
getWriteRequestCountin interfaceMetricsRegionWrapper
-
getNumFilesCompacted
- Specified by:
getNumFilesCompactedin interfaceMetricsRegionWrapper
-
getNumBytesCompacted
- Specified by:
getNumBytesCompactedin interfaceMetricsRegionWrapper
-
getNumCompactionsCompleted
- Specified by:
getNumCompactionsCompletedin interfaceMetricsRegionWrapper
-
getLastMajorCompactionAge
Description copied from interface:MetricsRegionWrapperReturns Age of the last major compaction- Specified by:
getLastMajorCompactionAgein interfaceMetricsRegionWrapper
-
getTotalRequestCount
- Specified by:
getTotalRequestCountin interfaceMetricsRegionWrapper
-
getNumCompactionsFailed
Description copied from interface:MetricsRegionWrapperReturns 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().- Specified by:
getNumCompactionsFailedin interfaceMetricsRegionWrapper
-
getNumCompactionsQueued
Description copied from interface:MetricsRegionWrapperReturns the total number of compactions that are currently queued(or being executed) at point in time- Specified by:
getNumCompactionsQueuedin interfaceMetricsRegionWrapper
-
getNumFlushesQueued
Description copied from interface:MetricsRegionWrapperReturns the total number of flushes currently queued(being executed) for this region at point in time- Specified by:
getNumFlushesQueuedin interfaceMetricsRegionWrapper
-
getMaxCompactionQueueSize
- Specified by:
getMaxCompactionQueueSizein interfaceMetricsRegionWrapper- 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
- Specified by:
getMaxFlushQueueSizein interfaceMetricsRegionWrapper- Returns:
- the max number of flushes queued for this region Note that this metric is updated periodically and hence might miss some data points
-
getMaxStoreFileAge
Description copied from interface:MetricsRegionWrapperReturns Max age of store files under this region- Specified by:
getMaxStoreFileAgein interfaceMetricsRegionWrapper
-
getMinStoreFileAge
Description copied from interface:MetricsRegionWrapperReturns Min age of store files under this region- Specified by:
getMinStoreFileAgein interfaceMetricsRegionWrapper
-
getAvgStoreFileAge
Description copied from interface:MetricsRegionWrapperReturns Average age of store files under this region- Specified by:
getAvgStoreFileAgein interfaceMetricsRegionWrapper
-
getNumReferenceFiles
Description copied from interface:MetricsRegionWrapperReturns Number of reference files under this region- Specified by:
getNumReferenceFilesin interfaceMetricsRegionWrapper
-
getRegionHashCode
- Specified by:
getRegionHashCodein interfaceMetricsRegionWrapper
-
getMemstoreOnlyRowReadsCount
Description copied from interface:MetricsRegionWrapperReturns the number of row reads completely on memstore per store- Specified by:
getMemstoreOnlyRowReadsCountin interfaceMetricsRegionWrapper
-
getMixedRowReadsCount
Description copied from interface:MetricsRegionWrapperReturns the number of row reads on memstore and file per store- Specified by:
getMixedRowReadsCountin interfaceMetricsRegionWrapper
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getReplicaId
Get the replica id of this region.- Specified by:
getReplicaIdin interfaceMetricsRegionWrapper
-