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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the table's metrics as all the region are closing.Get the aggregate source to which this reports.void
Increment number of a requested splitsvoid
Increment number of successful splitsvoid
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 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:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-