@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 |
Constructor and Description |
---|
MetricsTableWrapperAggregateImpl(HRegionServer regionServer) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
getMemStoresSize(String table)
Get the memory store size against this table
|
long |
getReadRequestsCount(String table)
Get the number of read requests that have been issued against this table
|
long |
getStoreFilesSize(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 against this table
|
long |
getWriteRequestsCount(String table)
Get the number of write requests that have been issued against 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 getReadRequestsCount(String table)
MetricsTableWrapperAggregate
getReadRequestsCount
in interface MetricsTableWrapperAggregate
public long getWriteRequestsCount(String table)
MetricsTableWrapperAggregate
getWriteRequestsCount
in interface MetricsTableWrapperAggregate
public long getTotalRequestsCount(String table)
MetricsTableWrapperAggregate
getTotalRequestsCount
in interface MetricsTableWrapperAggregate
public long getMemStoresSize(String table)
MetricsTableWrapperAggregate
getMemStoresSize
in interface MetricsTableWrapperAggregate
public long getStoreFilesSize(String table)
MetricsTableWrapperAggregate
getStoreFilesSize
in interface MetricsTableWrapperAggregate
public long getTableSize(String table)
MetricsTableWrapperAggregate
getTableSize
in interface MetricsTableWrapperAggregate
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.