@InterfaceAudience.Private public class MetricsTableQueryMeterImpl extends Object implements MetricsTableQueryMeter
MetricsTableQueryMeter
to track query per second for each table in
a RegionServer.Constructor and Description |
---|
MetricsTableQueryMeterImpl(MetricRegistry metricRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
updateTableReadQueryMeter(TableName tableName)
Update table read QPS
|
void |
updateTableReadQueryMeter(TableName tableName,
long count)
Update table read QPS
|
void |
updateTableWriteQueryMeter(TableName tableName)
Update table write QPS
|
void |
updateTableWriteQueryMeter(TableName tableName,
long count)
Update table write QPS
|
public MetricsTableQueryMeterImpl(MetricRegistry metricRegistry)
public void updateTableReadQueryMeter(TableName tableName, long count)
MetricsTableQueryMeter
updateTableReadQueryMeter
in interface MetricsTableQueryMeter
tableName
- The table the metric is forcount
- Number of occurrences to recordpublic void updateTableReadQueryMeter(TableName tableName)
MetricsTableQueryMeter
updateTableReadQueryMeter
in interface MetricsTableQueryMeter
tableName
- The table the metric is forpublic void updateTableWriteQueryMeter(TableName tableName, long count)
MetricsTableQueryMeter
updateTableWriteQueryMeter
in interface MetricsTableQueryMeter
tableName
- The table the metric is forcount
- Number of occurrences to recordpublic void updateTableWriteQueryMeter(TableName tableName)
MetricsTableQueryMeter
updateTableWriteQueryMeter
in interface MetricsTableQueryMeter
tableName
- The table the metric is forCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.