@InterfaceAudience.Private public class MetricsTableWrapperAggregateImpl extends Object implements MetricsTableWrapperAggregate, Closeable
| Modifier and Type | Class and Description |
|---|---|
private static class |
MetricsTableWrapperAggregateImpl.MetricsTableValues |
class |
MetricsTableWrapperAggregateImpl.TableMetricsWrapperRunnable |
| Modifier and Type | Field and Description |
|---|---|
private ScheduledExecutorService |
executor |
private ConcurrentHashMap<TableName,MetricsTableWrapperAggregateImpl.MetricsTableValues> |
metricsTableMap |
private long |
period |
private HRegionServer |
regionServer |
private Runnable |
runnable |
private ScheduledFuture<?> |
tableMetricsUpdateTask |
HASH| Constructor and Description |
|---|
MetricsTableWrapperAggregateImpl(HRegionServer regionServer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getAvgRegionSize(String table)
Get the average region size for this table
|
long |
getAvgStoreFileAge(String table)
Returns Average age of store files for this table
|
long |
getBloomFilterEligibleRequestsCount(String table)
Returns count of requests which could have used bloom filters for this table, but they weren't
configured or loaded.
|
long |
getBloomFilterNegativeResultsCount(String table)
Returns count of bloom filter requests which return a negative result for this table.
|
long |
getBloomFilterRequestsCount(String table)
Returns count of bloom filter requests for this table.
|
long |
getCpRequestCount(String table) |
long |
getCpRequestsCount(String table) |
long |
getFilteredReadRequestCount(String table)
Get the number of write requests that have been issued against this table
|
long |
getMaxStoreFileAge(String table)
Returns Max age of store files for this table
|
long |
getMaxStoreFiles(String table)
Get the max number of store files across all regions of this table
|
Map<String,Long> |
getMemstoreOnlyRowReadsCount(String table)
Returns number of row reads completely from memstore per store for this table
|
long |
getMemStoreSize(String table)
Get the memory store size against this table
|
long |
getMinStoreFileAge(String table)
Returns Min age of store files for this table
|
Map<String,Long> |
getMixedRowReadsCount(String table)
Returns number of row reads from file and memstore per store for this table
|
long |
getNumReferenceFiles(String table)
Returns Number of reference files for this table
|
long |
getNumRegions(String table)
Get the number of regions hosted on for this table
|
long |
getNumStoreFiles(String table)
Get the number of store files hosted for this table
|
long |
getNumStores(String table)
Get the number of stores hosted on for this table
|
long |
getReadRequestCount(String table)
Get the number of read requests that have been issued against this table
|
long |
getStaticBloomSize(String table)
Returns the size of the static blooms for this table
|
long |
getStaticIndexSize(String table)
Returns the size of the static indexes for this table
|
long |
getStoreFileSize(String table)
Get the store file size against this table
|
long |
getTableSize(String table)
Get the table region size against this table
|
long |
getTotalRequestsCount(String table)
Get the total number of requests that have been issued for this table
|
long |
getWriteRequestCount(String table)
Get the number of write requests that have been issued for this table
|
private final HRegionServer regionServer
private ScheduledExecutorService executor
private long period
private ScheduledFuture<?> tableMetricsUpdateTask
private ConcurrentHashMap<TableName,MetricsTableWrapperAggregateImpl.MetricsTableValues> metricsTableMap
public MetricsTableWrapperAggregateImpl(HRegionServer regionServer)
public long getReadRequestCount(String table)
MetricsTableWrapperAggregategetReadRequestCount in interface MetricsTableWrapperAggregatepublic Map<String,Long> getMemstoreOnlyRowReadsCount(String table)
MetricsTableWrapperAggregategetMemstoreOnlyRowReadsCount in interface MetricsTableWrapperAggregatepublic Map<String,Long> getMixedRowReadsCount(String table)
MetricsTableWrapperAggregategetMixedRowReadsCount in interface MetricsTableWrapperAggregatepublic long getCpRequestsCount(String table)
public long getFilteredReadRequestCount(String table)
MetricsTableWrapperAggregategetFilteredReadRequestCount in interface MetricsTableWrapperAggregatepublic long getWriteRequestCount(String table)
MetricsTableWrapperAggregategetWriteRequestCount in interface MetricsTableWrapperAggregatepublic long getTotalRequestsCount(String table)
MetricsTableWrapperAggregategetTotalRequestsCount in interface MetricsTableWrapperAggregatepublic long getMemStoreSize(String table)
MetricsTableWrapperAggregategetMemStoreSize in interface MetricsTableWrapperAggregatepublic long getStoreFileSize(String table)
MetricsTableWrapperAggregategetStoreFileSize in interface MetricsTableWrapperAggregatepublic long getTableSize(String table)
MetricsTableWrapperAggregategetTableSize in interface MetricsTableWrapperAggregatepublic long getNumRegions(String table)
MetricsTableWrapperAggregategetNumRegions in interface MetricsTableWrapperAggregatepublic long getNumStores(String table)
MetricsTableWrapperAggregategetNumStores in interface MetricsTableWrapperAggregatepublic long getNumStoreFiles(String table)
MetricsTableWrapperAggregategetNumStoreFiles in interface MetricsTableWrapperAggregatepublic long getMaxStoreFiles(String table)
MetricsTableWrapperAggregategetMaxStoreFiles in interface MetricsTableWrapperAggregatepublic long getMaxStoreFileAge(String table)
MetricsTableWrapperAggregategetMaxStoreFileAge in interface MetricsTableWrapperAggregatepublic long getMinStoreFileAge(String table)
MetricsTableWrapperAggregategetMinStoreFileAge in interface MetricsTableWrapperAggregatepublic long getAvgStoreFileAge(String table)
MetricsTableWrapperAggregategetAvgStoreFileAge in interface MetricsTableWrapperAggregatepublic long getStaticIndexSize(String table)
MetricsTableWrapperAggregategetStaticIndexSize in interface MetricsTableWrapperAggregatepublic long getStaticBloomSize(String table)
MetricsTableWrapperAggregategetStaticBloomSize in interface MetricsTableWrapperAggregatepublic long getBloomFilterRequestsCount(String table)
MetricsTableWrapperAggregategetBloomFilterRequestsCount in interface MetricsTableWrapperAggregatepublic long getBloomFilterNegativeResultsCount(String table)
MetricsTableWrapperAggregategetBloomFilterNegativeResultsCount in interface MetricsTableWrapperAggregatepublic long getBloomFilterEligibleRequestsCount(String table)
MetricsTableWrapperAggregategetBloomFilterEligibleRequestsCount in interface MetricsTableWrapperAggregatepublic long getNumReferenceFiles(String table)
MetricsTableWrapperAggregategetNumReferenceFiles in interface MetricsTableWrapperAggregatepublic long getAvgRegionSize(String table)
MetricsTableWrapperAggregategetAvgRegionSize in interface MetricsTableWrapperAggregatepublic long getCpRequestCount(String table)
public void close() throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.