Class MetricsTableSourceImpl
java.lang.Object
org.apache.hadoop.hbase.regionserver.MetricsTableSourceImpl
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Comparable<MetricsTableSource>
,MetricsTableSource
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final String
private final MetricsTableAggregateSourceImpl
private AtomicBoolean
private MutableFastCounter
private MutableFastCounter
private MetricHistogram
private MetricHistogram
private MetricHistogram
private MetricHistogram
private MetricHistogram
private MutableFastCounter
private MutableFastCounter
private MetricHistogram
private MetricHistogram
private MetricHistogram
private final int
private static final org.slf4j.Logger
private MutableFastCounter
private MutableFastCounter
private MetricHistogram
private MetricHistogram
private MetricHistogram
private MetricHistogram
private MetricHistogram
private final DynamicMetricsRegistry
private MutableFastCounter
private MutableFastCounter
private MetricHistogram
private final TableName
private final String
private final String
private final String
private MetricsTableWrapperAggregate
Fields inherited from interface org.apache.hadoop.hbase.regionserver.MetricsTableSource
TABLE_SIZE, TABLE_SIZE_DESC
-
Constructor Summary
ConstructorDescriptionMetricsTableSourceImpl
(String tblName, MetricsTableAggregateSourceImpl aggregate, MetricsTableWrapperAggregate tblWrapperAgg) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addGauge
(org.apache.hadoop.metrics2.MetricsRecordBuilder mrb, Map<String, Long> metricMap, String metricName, String metricDesc) void
close()
Close the table's metrics as all the region are closing.int
compareTo
(MetricsTableSource source) private void
boolean
Get the aggregate source to which this reports.int
hashCode()
void
Increment number of a requested splitsvoid
Increment number of successful splitsvoid
(package private) void
snapshot
(org.apache.hadoop.metrics2.MetricsRecordBuilder mrb, boolean ignored) void
updateCompactionInputFileCount
(boolean isMajor, long c) Update the compaction input number of files histogramvoid
updateCompactionInputSize
(boolean isMajor, long bytes) Update the compaction total input file size histogramvoid
updateCompactionOutputFileCount
(boolean isMajor, long c) Update the compaction output number of files histogramvoid
updateCompactionOutputSize
(boolean isMajor, long bytes) Update the compaction total output file sizevoid
updateCompactionTime
(boolean isMajor, long t) Update the compaction time histogram, both major and minorvoid
updateFlushMemstoreSize
(long bytes) Update the flush memstore size histogramvoid
updateFlushOutputSize
(long bytes) Update the flush output file size histogramvoid
updateFlushTime
(long t) Update the flush time histogramvoid
updateSplitTime
(long t) Update the split transaction time histogram
-
Field Details
-
_COLUMNFAMILY
- See Also:
-
LOG
-
closed
-
tableWrapperAgg
-
agg
-
registry
-
tableNamePrefix
-
tableNamePrefixPart1
-
tableNamePrefixPart2
-
tableName
-
hashCode
-
splitRequest
-
splitSuccess
-
splitTimeHisto
-
flushTimeHisto
-
flushMemstoreSizeHisto
-
flushOutputSizeHisto
-
flushedMemstoreBytes
-
flushedOutputBytes
-
compactionTimeHisto
-
compactionInputFileCountHisto
-
compactionInputSizeHisto
-
compactionOutputFileCountHisto
-
compactionOutputSizeHisto
-
compactedInputBytes
-
compactedOutputBytes
-
majorCompactionTimeHisto
-
majorCompactionInputFileCountHisto
-
majorCompactionInputSizeHisto
-
majorCompactionOutputFileCountHisto
-
majorCompactionOutputSizeHisto
-
majorCompactedInputBytes
-
majorCompactedOutputBytes
-
-
Constructor Details
-
MetricsTableSourceImpl
public MetricsTableSourceImpl(String tblName, MetricsTableAggregateSourceImpl aggregate, MetricsTableWrapperAggregate tblWrapperAgg)
-
-
Method Details
-
registerMetrics
- Specified by:
registerMetrics
in interfaceMetricsTableSource
-
deregisterMetrics
-
close
Description copied from interface:MetricsTableSource
Close the table's metrics as all the region are closing.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceMetricsTableSource
-
getAggregateSource
Description copied from interface:MetricsTableSource
Get the aggregate source to which this reports.- Specified by:
getAggregateSource
in interfaceMetricsTableSource
-
compareTo
- Specified by:
compareTo
in interfaceComparable<MetricsTableSource>
-
snapshot
-
addGauge
-
getTableName
- Specified by:
getTableName
in interfaceMetricsTableSource
-
hashCode
-
equals
-
getTableWrapper
-
getTableNamePrefix
-
incrSplitRequest
Description copied from interface:MetricsTableSource
Increment number of a requested splits- Specified by:
incrSplitRequest
in interfaceMetricsTableSource
-
incrSplitSuccess
Description copied from interface:MetricsTableSource
Increment number of successful splits- Specified by:
incrSplitSuccess
in interfaceMetricsTableSource
-
updateSplitTime
Description copied from interface:MetricsTableSource
Update the split transaction time histogram- Specified by:
updateSplitTime
in interfaceMetricsTableSource
- Parameters:
t
- time it took, in milliseconds
-
updateFlushTime
Description copied from interface:MetricsTableSource
Update the flush time histogram- Specified by:
updateFlushTime
in interfaceMetricsTableSource
- Parameters:
t
- time it took, in milliseconds
-
updateFlushMemstoreSize
Description copied from interface:MetricsTableSource
Update the flush memstore size histogram- Specified by:
updateFlushMemstoreSize
in interfaceMetricsTableSource
- Parameters:
bytes
- the number of bytes in the memstore
-
updateFlushOutputSize
Description copied from interface:MetricsTableSource
Update the flush output file size histogram- Specified by:
updateFlushOutputSize
in interfaceMetricsTableSource
- Parameters:
bytes
- the number of bytes in the output file
-
updateCompactionTime
Description copied from interface:MetricsTableSource
Update the compaction time histogram, both major and minor- Specified by:
updateCompactionTime
in interfaceMetricsTableSource
- Parameters:
isMajor
- whether compaction is a major compactiont
- time it took, in milliseconds
-
updateCompactionInputFileCount
Description copied from interface:MetricsTableSource
Update the compaction input number of files histogram- Specified by:
updateCompactionInputFileCount
in interfaceMetricsTableSource
- Parameters:
isMajor
- whether compaction is a major compactionc
- number of files
-
updateCompactionInputSize
Description copied from interface:MetricsTableSource
Update the compaction total input file size histogram- Specified by:
updateCompactionInputSize
in interfaceMetricsTableSource
- Parameters:
isMajor
- whether compaction is a major compactionbytes
- the number of bytes of the compaction input file
-
updateCompactionOutputFileCount
Description copied from interface:MetricsTableSource
Update the compaction output number of files histogram- Specified by:
updateCompactionOutputFileCount
in interfaceMetricsTableSource
- Parameters:
isMajor
- whether compaction is a major compactionc
- number of files
-
updateCompactionOutputSize
Description copied from interface:MetricsTableSource
Update the compaction total output file size- Specified by:
updateCompactionOutputSize
in interfaceMetricsTableSource
- Parameters:
isMajor
- whether compaction is a major compactionbytes
- the number of bytes of the compaction input file
-