Class MetricsTableSourceImpl
java.lang.Object
org.apache.hadoop.hbase.regionserver.MetricsTableSourceImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,Comparable<MetricsTableSource>,MetricsTableSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate final MetricsTableAggregateSourceImplprivate AtomicBooleanprivate MutableFastCounterprivate MutableFastCounterprivate MetricHistogramprivate MetricHistogramprivate MetricHistogramprivate MetricHistogramprivate MetricHistogramprivate MutableFastCounterprivate MutableFastCounterprivate MetricHistogramprivate MetricHistogramprivate MetricHistogramprivate final intprivate static final org.slf4j.Loggerprivate MutableFastCounterprivate MutableFastCounterprivate MetricHistogramprivate MetricHistogramprivate MetricHistogramprivate MetricHistogramprivate MetricHistogramprivate final DynamicMetricsRegistryprivate MutableFastCounterprivate MutableFastCounterprivate MetricHistogramprivate final TableNameprivate final Stringprivate final Stringprivate final Stringprivate MetricsTableWrapperAggregateFields inherited from interface org.apache.hadoop.hbase.regionserver.MetricsTableSource
TABLE_SIZE, TABLE_SIZE_DESC -
Constructor Summary
ConstructorsConstructorDescriptionMetricsTableSourceImpl(String tblName, MetricsTableAggregateSourceImpl aggregate, MetricsTableWrapperAggregate tblWrapperAgg) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddGauge(org.apache.hadoop.metrics2.MetricsRecordBuilder mrb, Map<String, Long> metricMap, String metricName, String metricDesc) voidclose()Close the table's metrics as all the region are closing.intcompareTo(MetricsTableSource source) private voidbooleanGet the aggregate source to which this reports.inthashCode()voidIncrement number of a requested splitsvoidIncrement number of successful splitsvoid(package private) voidsnapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder mrb, boolean ignored) voidupdateCompactionInputFileCount(boolean isMajor, long c) Update the compaction input number of files histogramvoidupdateCompactionInputSize(boolean isMajor, long bytes) Update the compaction total input file size histogramvoidupdateCompactionOutputFileCount(boolean isMajor, long c) Update the compaction output number of files histogramvoidupdateCompactionOutputSize(boolean isMajor, long bytes) Update the compaction total output file sizevoidupdateCompactionTime(boolean isMajor, long t) Update the compaction time histogram, both major and minorvoidupdateFlushMemstoreSize(long bytes) Update the flush memstore size histogramvoidupdateFlushOutputSize(long bytes) Update the flush output file size histogramvoidupdateFlushTime(long t) Update the flush time histogramvoidupdateSplitTime(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:
registerMetricsin interfaceMetricsTableSource
-
deregisterMetrics
-
close
Description copied from interface:MetricsTableSourceClose the table's metrics as all the region are closing.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceMetricsTableSource
-
getAggregateSource
Description copied from interface:MetricsTableSourceGet the aggregate source to which this reports.- Specified by:
getAggregateSourcein interfaceMetricsTableSource
-
compareTo
- Specified by:
compareToin interfaceComparable<MetricsTableSource>
-
snapshot
-
addGauge
-
getTableName
- Specified by:
getTableNamein interfaceMetricsTableSource
-
hashCode
-
equals
-
getTableWrapper
-
getTableNamePrefix
-
incrSplitRequest
Description copied from interface:MetricsTableSourceIncrement number of a requested splits- Specified by:
incrSplitRequestin interfaceMetricsTableSource
-
incrSplitSuccess
Description copied from interface:MetricsTableSourceIncrement number of successful splits- Specified by:
incrSplitSuccessin interfaceMetricsTableSource
-
updateSplitTime
Description copied from interface:MetricsTableSourceUpdate the split transaction time histogram- Specified by:
updateSplitTimein interfaceMetricsTableSource- Parameters:
t- time it took, in milliseconds
-
updateFlushTime
Description copied from interface:MetricsTableSourceUpdate the flush time histogram- Specified by:
updateFlushTimein interfaceMetricsTableSource- Parameters:
t- time it took, in milliseconds
-
updateFlushMemstoreSize
Description copied from interface:MetricsTableSourceUpdate the flush memstore size histogram- Specified by:
updateFlushMemstoreSizein interfaceMetricsTableSource- Parameters:
bytes- the number of bytes in the memstore
-
updateFlushOutputSize
Description copied from interface:MetricsTableSourceUpdate the flush output file size histogram- Specified by:
updateFlushOutputSizein interfaceMetricsTableSource- Parameters:
bytes- the number of bytes in the output file
-
updateCompactionTime
Description copied from interface:MetricsTableSourceUpdate the compaction time histogram, both major and minor- Specified by:
updateCompactionTimein interfaceMetricsTableSource- Parameters:
isMajor- whether compaction is a major compactiont- time it took, in milliseconds
-
updateCompactionInputFileCount
Description copied from interface:MetricsTableSourceUpdate the compaction input number of files histogram- Specified by:
updateCompactionInputFileCountin interfaceMetricsTableSource- Parameters:
isMajor- whether compaction is a major compactionc- number of files
-
updateCompactionInputSize
Description copied from interface:MetricsTableSourceUpdate the compaction total input file size histogram- Specified by:
updateCompactionInputSizein interfaceMetricsTableSource- Parameters:
isMajor- whether compaction is a major compactionbytes- the number of bytes of the compaction input file
-
updateCompactionOutputFileCount
Description copied from interface:MetricsTableSourceUpdate the compaction output number of files histogram- Specified by:
updateCompactionOutputFileCountin interfaceMetricsTableSource- Parameters:
isMajor- whether compaction is a major compactionc- number of files
-
updateCompactionOutputSize
Description copied from interface:MetricsTableSourceUpdate the compaction total output file size- Specified by:
updateCompactionOutputSizein interfaceMetricsTableSource- Parameters:
isMajor- whether compaction is a major compactionbytes- the number of bytes of the compaction input file
-