Class MetricsRegionSourceImpl
java.lang.Object
org.apache.hadoop.hbase.regionserver.MetricsRegionSourceImpl
- All Implemented Interfaces:
Comparable<MetricsRegionSource>
,MetricsRegionSource
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final String
private final MetricsRegionAggregateSourceImpl
private AtomicBoolean
private final int
private static final org.slf4j.Logger
private final MutableFastCounter
private final String
private final MutableFastCounter
private final String
private final MutableFastCounter
private final String
private final MutableFastCounter
private final String
private final String
private final String
private final String
private final MutableFastCounter
private final String
private final MutableFastCounter
private final String
private MetricsRegionWrapper
private final DynamicMetricsRegistry
Fields inherited from interface org.apache.hadoop.hbase.regionserver.MetricsRegionSource
COMPACTIONS_COMPLETED_COUNT, COMPACTIONS_COMPLETED_DESC, COMPACTIONS_FAILED_COUNT, COMPACTIONS_FAILED_DESC, COMPACTIONS_QUEUED_COUNT, COMPACTIONS_QUEUED_DESC, COPROCESSOR_EXECUTION_STATISTICS, COPROCESSOR_EXECUTION_STATISTICS_DESC, FLUSHES_QUEUED_COUNT, FLUSHES_QUEUED_DESC, LAST_MAJOR_COMPACTION_AGE, LAST_MAJOR_COMPACTION_DESC, MAX_COMPACTION_QUEUE_DESC, MAX_COMPACTION_QUEUE_SIZE, MAX_FLUSH_QUEUE_DESC, MAX_FLUSH_QUEUE_SIZE, MIXED_ROW_READS, MIXED_ROW_READS_ON_STORE_DESC, NUM_BYTES_COMPACTED_COUNT, NUM_BYTES_COMPACTED_DESC, NUM_FILES_COMPACTED_COUNT, NUM_FILES_COMPACTED_DESC, OPS_SAMPLE_NAME, REPLICA_ID, REPLICA_ID_DESC, ROW_READS_ONLY_ON_MEMSTORE, ROW_READS_ONLY_ON_MEMSTORE_DESC, SIZE_VALUE_NAME
-
Constructor Summary
ConstructorDescriptionMetricsRegionSourceImpl
(MetricsRegionWrapper regionWrapper, MetricsRegionAggregateSourceImpl aggregate) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addCounter
(org.apache.hadoop.metrics2.MetricsRecordBuilder mrb, Map<String, Long> metricMap, String metricName, String metricDesc) void
close()
Close the region's metrics as this region is closing.int
compareTo
(MetricsRegionSource source) boolean
Get the aggregate source to which this reports.int
hashCode()
(package private) void
snapshot
(org.apache.hadoop.metrics2.MetricsRecordBuilder mrb, boolean ignored) void
Update related counts of appends.void
Update related counts of deletes.void
updateGet
(long mills) Update time of getsvoid
Update related counts of increments.void
Update related counts of puts.void
updateScanTime
(long mills) Update time used of resultScanner.next().
-
Field Details
-
LOG
-
_STORE
- See Also:
-
closed
-
regionWrapper
-
agg
-
registry
-
regionNamePrefix
-
regionNamePrefix1
-
regionNamePrefix2
-
regionPutKey
-
regionDeleteKey
-
regionGetKey
-
regionIncrementKey
-
regionAppendKey
-
regionScanKey
-
regionPut
-
regionDelete
-
regionIncrement
-
regionAppend
-
regionGet
-
regionScan
-
hashCode
-
-
Constructor Details
-
MetricsRegionSourceImpl
public MetricsRegionSourceImpl(MetricsRegionWrapper regionWrapper, MetricsRegionAggregateSourceImpl aggregate)
-
-
Method Details
-
close
Description copied from interface:MetricsRegionSource
Close the region's metrics as this region is closing.- Specified by:
close
in interfaceMetricsRegionSource
-
updatePut
Description copied from interface:MetricsRegionSource
Update related counts of puts.- Specified by:
updatePut
in interfaceMetricsRegionSource
-
updateDelete
Description copied from interface:MetricsRegionSource
Update related counts of deletes.- Specified by:
updateDelete
in interfaceMetricsRegionSource
-
updateGet
Description copied from interface:MetricsRegionSource
Update time of gets- Specified by:
updateGet
in interfaceMetricsRegionSource
- Parameters:
mills
- time for this get operation.
-
updateScanTime
Description copied from interface:MetricsRegionSource
Update time used of resultScanner.next().- Specified by:
updateScanTime
in interfaceMetricsRegionSource
-
updateIncrement
Description copied from interface:MetricsRegionSource
Update related counts of increments.- Specified by:
updateIncrement
in interfaceMetricsRegionSource
-
updateAppend
Description copied from interface:MetricsRegionSource
Update related counts of appends.- Specified by:
updateAppend
in interfaceMetricsRegionSource
-
getAggregateSource
Description copied from interface:MetricsRegionSource
Get the aggregate source to which this reports.- Specified by:
getAggregateSource
in interfaceMetricsRegionSource
-
compareTo
- Specified by:
compareTo
in interfaceComparable<MetricsRegionSource>
-
snapshot
-
addCounter
-
hashCode
-
equals
-