@InterfaceAudience.Private public class MetricsTableSourceImpl extends Object implements MetricsTableSource
Modifier and Type | Field and Description |
---|---|
private MetricsTableAggregateSourceImpl |
agg |
private AtomicBoolean |
closed |
private int |
hashCode |
private static org.slf4j.Logger |
LOG |
private DynamicMetricsRegistry |
registry |
private TableName |
tableName |
private String |
tableNamePrefix |
private MetricsTableWrapperAggregate |
tableWrapperAgg |
MEMSTORE_SIZE, MEMSTORE_SIZE_DESC, READ_REQUEST_COUNT, READ_REQUEST_COUNT_DESC, STORE_FILE_SIZE, STORE_FILE_SIZE_DESC, TABLE_SIZE, TABLE_SIZE_DESC, TOTAL_REQUEST_COUNT, TOTAL_REQUEST_COUNT_DESC, WRITE_REQUEST_COUNT, WRITE_REQUEST_COUNT_DESC
Constructor and Description |
---|
MetricsTableSourceImpl(String tblName,
MetricsTableAggregateSourceImpl aggregate,
MetricsTableWrapperAggregate tblWrapperAgg) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the table's metrics as all the region are closing.
|
int |
compareTo(MetricsTableSource source) |
boolean |
equals(Object o) |
MetricsTableAggregateSource |
getAggregateSource()
Get the aggregate source to which this reports.
|
String |
getTableName() |
String |
getTableNamePrefix() |
MetricsTableWrapperAggregate |
getTableWrapper() |
int |
hashCode() |
(package private) void |
snapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder mrb,
boolean ignored) |
private static final org.slf4j.Logger LOG
private AtomicBoolean closed
private MetricsTableWrapperAggregate tableWrapperAgg
private final MetricsTableAggregateSourceImpl agg
private final DynamicMetricsRegistry registry
private final String tableNamePrefix
private final int hashCode
public MetricsTableSourceImpl(String tblName, MetricsTableAggregateSourceImpl aggregate, MetricsTableWrapperAggregate tblWrapperAgg)
public void close()
MetricsTableSource
close
in interface MetricsTableSource
public MetricsTableAggregateSource getAggregateSource()
MetricsTableSource
getAggregateSource
in interface MetricsTableSource
public int compareTo(MetricsTableSource source)
compareTo
in interface Comparable<MetricsTableSource>
void snapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder mrb, boolean ignored)
public String getTableName()
getTableName
in interface MetricsTableSource
public MetricsTableWrapperAggregate getTableWrapper()
public String getTableNamePrefix()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.