Interface MetricsTableSource
- All Superinterfaces:
AutoCloseable,Closeable,Comparable<MetricsTableSource>
- All Known Implementing Classes:
MetricsTableSourceImpl
This interface will be implemented to allow region server to push table metrics into
MetricsRegionAggregateSource that will in turn push data to the Hadoop metrics system.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the table's metrics as all the region are closing.Get the aggregate source to which this reports.voidIncrement number of a requested splitsvoidIncrement number of successful splitsvoidvoidupdateCompactionInputFileCount(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 histogramMethods inherited from interface java.lang.Comparable
compareTo
-
Field Details
-
TABLE_SIZE
- See Also:
-
TABLE_SIZE_DESC
- See Also:
-
-
Method Details
-
getTableName
-
close
void close()Close the table's metrics as all the region are closing.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
registerMetrics
void registerMetrics() -
getAggregateSource
Get the aggregate source to which this reports. -
updateSplitTime
Update the split transaction time histogram- Parameters:
t- time it took, in milliseconds
-
incrSplitRequest
void incrSplitRequest()Increment number of a requested splits -
incrSplitSuccess
void incrSplitSuccess()Increment number of successful splits -
updateFlushTime
Update the flush time histogram- Parameters:
t- time it took, in milliseconds
-
updateFlushMemstoreSize
Update the flush memstore size histogram- Parameters:
bytes- the number of bytes in the memstore
-
updateFlushOutputSize
Update the flush output file size histogram- Parameters:
bytes- the number of bytes in the output file
-
updateCompactionTime
Update the compaction time histogram, both major and minor- Parameters:
isMajor- whether compaction is a major compactiont- time it took, in milliseconds
-
updateCompactionInputFileCount
Update the compaction input number of files histogram- Parameters:
isMajor- whether compaction is a major compactionc- number of files
-
updateCompactionInputSize
Update the compaction total input file size histogram- Parameters:
isMajor- whether compaction is a major compactionbytes- the number of bytes of the compaction input file
-
updateCompactionOutputFileCount
Update the compaction output number of files histogram- Parameters:
isMajor- whether compaction is a major compactionc- number of files
-
updateCompactionOutputSize
Update the compaction total output file size- Parameters:
isMajor- whether compaction is a major compactionbytes- the number of bytes of the compaction input file
-