@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)
MetricsTableWrapperAggregate
getReadRequestCount
in interface MetricsTableWrapperAggregate
public Map<String,Long> getMemstoreOnlyRowReadsCount(String table)
MetricsTableWrapperAggregate
getMemstoreOnlyRowReadsCount
in interface MetricsTableWrapperAggregate
public Map<String,Long> getMixedRowReadsCount(String table)
MetricsTableWrapperAggregate
getMixedRowReadsCount
in interface MetricsTableWrapperAggregate
public long getCpRequestsCount(String table)
public long getFilteredReadRequestCount(String table)
MetricsTableWrapperAggregate
getFilteredReadRequestCount
in interface MetricsTableWrapperAggregate
public long getWriteRequestCount(String table)
MetricsTableWrapperAggregate
getWriteRequestCount
in interface MetricsTableWrapperAggregate
public long getTotalRequestsCount(String table)
MetricsTableWrapperAggregate
getTotalRequestsCount
in interface MetricsTableWrapperAggregate
public long getMemStoreSize(String table)
MetricsTableWrapperAggregate
getMemStoreSize
in interface MetricsTableWrapperAggregate
public long getStoreFileSize(String table)
MetricsTableWrapperAggregate
getStoreFileSize
in interface MetricsTableWrapperAggregate
public long getTableSize(String table)
MetricsTableWrapperAggregate
getTableSize
in interface MetricsTableWrapperAggregate
public long getNumRegions(String table)
MetricsTableWrapperAggregate
getNumRegions
in interface MetricsTableWrapperAggregate
public long getNumStores(String table)
MetricsTableWrapperAggregate
getNumStores
in interface MetricsTableWrapperAggregate
public long getNumStoreFiles(String table)
MetricsTableWrapperAggregate
getNumStoreFiles
in interface MetricsTableWrapperAggregate
public long getMaxStoreFiles(String table)
MetricsTableWrapperAggregate
getMaxStoreFiles
in interface MetricsTableWrapperAggregate
public long getMaxStoreFileAge(String table)
MetricsTableWrapperAggregate
getMaxStoreFileAge
in interface MetricsTableWrapperAggregate
public long getMinStoreFileAge(String table)
MetricsTableWrapperAggregate
getMinStoreFileAge
in interface MetricsTableWrapperAggregate
public long getAvgStoreFileAge(String table)
MetricsTableWrapperAggregate
getAvgStoreFileAge
in interface MetricsTableWrapperAggregate
public long getStaticIndexSize(String table)
MetricsTableWrapperAggregate
getStaticIndexSize
in interface MetricsTableWrapperAggregate
public long getStaticBloomSize(String table)
MetricsTableWrapperAggregate
getStaticBloomSize
in interface MetricsTableWrapperAggregate
public long getBloomFilterRequestsCount(String table)
MetricsTableWrapperAggregate
getBloomFilterRequestsCount
in interface MetricsTableWrapperAggregate
public long getBloomFilterNegativeResultsCount(String table)
MetricsTableWrapperAggregate
getBloomFilterNegativeResultsCount
in interface MetricsTableWrapperAggregate
public long getBloomFilterEligibleRequestsCount(String table)
MetricsTableWrapperAggregate
getBloomFilterEligibleRequestsCount
in interface MetricsTableWrapperAggregate
public long getNumReferenceFiles(String table)
MetricsTableWrapperAggregate
getNumReferenceFiles
in interface MetricsTableWrapperAggregate
public long getAvgRegionSize(String table)
MetricsTableWrapperAggregate
getAvgRegionSize
in interface MetricsTableWrapperAggregate
public long getCpRequestCount(String table)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.