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
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
private float
private ScheduledExecutorService
private static final org.slf4j.Logger
private long
private long
private long
private long
private long
private long
private long
private long
static final int
private final HRegion
private ScheduledFuture<?>
private Runnable
private long
private long
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
long
Returns Average age of store files under this regionlong
Get the total number of CoprocessorService requests that have been issued against this regionfloat
Gets the current cache % ratio for this region.long
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
Note that this metric is updated periodically and hence might miss some data points.long
Note that this metric is updated periodically and hence might miss some data points.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.
-
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
-
currentRegionCacheRatio
-
-
Constructor Details
-
MetricsRegionWrapperImpl
-
-
Method Details
-
getTableName
Description copied from interface:MetricsRegionWrapper
Get the name of the table the region belongs to.- Specified by:
getTableName
in interfaceMetricsRegionWrapper
- Returns:
- The string version of the table name.
-
getNamespace
Description copied from interface:MetricsRegionWrapper
Get the name of the namespace this table is in.- Specified by:
getNamespace
in interfaceMetricsRegionWrapper
- Returns:
- String version of the namespace. Can't be empty.
-
getRegionName
Description copied from interface:MetricsRegionWrapper
Get the name of the region.- Specified by:
getRegionName
in interfaceMetricsRegionWrapper
- Returns:
- The encoded name of the region.
-
getNumStores
Description copied from interface:MetricsRegionWrapper
Get the number of stores hosted on this region server.- Specified by:
getNumStores
in interfaceMetricsRegionWrapper
-
getNumStoreFiles
Description copied from interface:MetricsRegionWrapper
Get the number of store files hosted on this region server.- Specified by:
getNumStoreFiles
in interfaceMetricsRegionWrapper
-
getMemStoreSize
Description copied from interface:MetricsRegionWrapper
Get the size of the memstore on this region server.- Specified by:
getMemStoreSize
in interfaceMetricsRegionWrapper
-
getStoreFileSize
Description copied from interface:MetricsRegionWrapper
Get the total size of the store files this region server is serving from.- Specified by:
getStoreFileSize
in interfaceMetricsRegionWrapper
-
getCurrentRegionCacheRatio
Description copied from interface:MetricsRegionWrapper
Gets the current cache % ratio for this region.- Specified by:
getCurrentRegionCacheRatio
in interfaceMetricsRegionWrapper
-
getStoreRefCount
Description copied from interface:MetricsRegionWrapper
Returns the number of references active on the store- Specified by:
getStoreRefCount
in interfaceMetricsRegionWrapper
-
getMaxCompactedStoreFileRefCount
Description copied from interface:MetricsRegionWrapper
Returns the max number of references active on any store file among all compacted store files that belong to this region- Specified by:
getMaxCompactedStoreFileRefCount
in interfaceMetricsRegionWrapper
-
getReadRequestCount
Description copied from interface:MetricsRegionWrapper
Get the total number of read requests that have been issued against this region- Specified by:
getReadRequestCount
in interfaceMetricsRegionWrapper
-
getCpRequestCount
Description copied from interface:MetricsRegionWrapper
Get the total number of CoprocessorService requests that have been issued against this region- Specified by:
getCpRequestCount
in interfaceMetricsRegionWrapper
-
getFilteredReadRequestCount
Description copied from interface:MetricsRegionWrapper
Get the total number of filtered read requests that have been issued against this region- Specified by:
getFilteredReadRequestCount
in interfaceMetricsRegionWrapper
-
getWriteRequestCount
Description copied from interface:MetricsRegionWrapper
Get the total number of mutations that have been issued against this region.- Specified by:
getWriteRequestCount
in interfaceMetricsRegionWrapper
-
getNumFilesCompacted
- Specified by:
getNumFilesCompacted
in interfaceMetricsRegionWrapper
-
getNumBytesCompacted
- Specified by:
getNumBytesCompacted
in interfaceMetricsRegionWrapper
-
getNumCompactionsCompleted
- Specified by:
getNumCompactionsCompleted
in interfaceMetricsRegionWrapper
-
getLastMajorCompactionAge
Description copied from interface:MetricsRegionWrapper
Returns Age of the last major compaction- Specified by:
getLastMajorCompactionAge
in interfaceMetricsRegionWrapper
-
getTotalRequestCount
- Specified by:
getTotalRequestCount
in interfaceMetricsRegionWrapper
-
getNumCompactionsFailed
Description copied from interface:MetricsRegionWrapper
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()
.- Specified by:
getNumCompactionsFailed
in interfaceMetricsRegionWrapper
-
getNumCompactionsQueued
Description copied from interface:MetricsRegionWrapper
Returns the total number of compactions that are currently queued(or being executed) at point in time- Specified by:
getNumCompactionsQueued
in interfaceMetricsRegionWrapper
-
getNumFlushesQueued
Description copied from interface:MetricsRegionWrapper
Returns the total number of flushes currently queued(being executed) for this region at point in time- Specified by:
getNumFlushesQueued
in interfaceMetricsRegionWrapper
-
getMaxCompactionQueueSize
Description copied from interface:MetricsRegionWrapper
Note that this metric is updated periodically and hence might miss some data points.- Specified by:
getMaxCompactionQueueSize
in interfaceMetricsRegionWrapper
- Returns:
- the max number of compactions queued for this region
-
getMaxFlushQueueSize
Description copied from interface:MetricsRegionWrapper
Note that this metric is updated periodically and hence might miss some data points.- Specified by:
getMaxFlushQueueSize
in interfaceMetricsRegionWrapper
- Returns:
- the max number of flushes queued for this region
-
getMaxStoreFileAge
Description copied from interface:MetricsRegionWrapper
Returns Max age of store files under this region- Specified by:
getMaxStoreFileAge
in interfaceMetricsRegionWrapper
-
getMinStoreFileAge
Description copied from interface:MetricsRegionWrapper
Returns Min age of store files under this region- Specified by:
getMinStoreFileAge
in interfaceMetricsRegionWrapper
-
getAvgStoreFileAge
Description copied from interface:MetricsRegionWrapper
Returns Average age of store files under this region- Specified by:
getAvgStoreFileAge
in interfaceMetricsRegionWrapper
-
getNumReferenceFiles
Description copied from interface:MetricsRegionWrapper
Returns Number of reference files under this region- Specified by:
getNumReferenceFiles
in interfaceMetricsRegionWrapper
-
getRegionHashCode
- Specified by:
getRegionHashCode
in interfaceMetricsRegionWrapper
-
getMemstoreOnlyRowReadsCount
Description copied from interface:MetricsRegionWrapper
Returns the number of row reads completely on memstore per store- Specified by:
getMemstoreOnlyRowReadsCount
in interfaceMetricsRegionWrapper
-
getMixedRowReadsCount
Description copied from interface:MetricsRegionWrapper
Returns the number of row reads on memstore and file per store- Specified by:
getMixedRowReadsCount
in interfaceMetricsRegionWrapper
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getReplicaId
Get the replica id of this region.- Specified by:
getReplicaId
in interfaceMetricsRegionWrapper
-