@InterfaceAudience.Private public class MetricsRegionSourceImpl extends Object implements MetricsRegionSource
Modifier and Type | Field and Description |
---|---|
private MetricsRegionAggregateSourceImpl |
agg |
private AtomicBoolean |
closed |
private int |
hashCode |
private static org.slf4j.Logger |
LOG |
private MutableFastCounter |
regionAppend |
private String |
regionAppendKey |
private MutableFastCounter |
regionDelete |
private String |
regionDeleteKey |
private MutableFastCounter |
regionGet |
private String |
regionGetKey |
private MutableFastCounter |
regionIncrement |
private String |
regionIncrementKey |
private String |
regionNamePrefix |
private MutableFastCounter |
regionPut |
private String |
regionPutKey |
private MutableFastCounter |
regionScan |
private String |
regionScanKey |
private MetricsRegionWrapper |
regionWrapper |
private DynamicMetricsRegistry |
registry |
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, NUM_BYTES_COMPACTED_COUNT, NUM_BYTES_COMPACTED_DESC, NUM_FILES_COMPACTED_COUNT, NUM_FILES_COMPACTED_DESC, OPS_SAMPLE_NAME, REPLICA_ID, REPLICA_ID_DESC, SIZE_VALUE_NAME
Constructor and Description |
---|
MetricsRegionSourceImpl(MetricsRegionWrapper regionWrapper,
MetricsRegionAggregateSourceImpl aggregate) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the region's metrics as this region is closing.
|
int |
compareTo(MetricsRegionSource source) |
boolean |
equals(Object obj) |
MetricsRegionAggregateSource |
getAggregateSource()
Get the aggregate source to which this reports.
|
int |
hashCode() |
(package private) void |
snapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder mrb,
boolean ignored) |
void |
updateAppend()
Update related counts of appends.
|
void |
updateDelete()
Update related counts of deletes.
|
void |
updateGet(long mills)
Update time of gets
|
void |
updateIncrement()
Update related counts of increments.
|
void |
updatePut()
Update related counts of puts.
|
void |
updateScanTime(long mills)
Update time used of resultScanner.next().
|
private static final org.slf4j.Logger LOG
private AtomicBoolean closed
private MetricsRegionWrapper regionWrapper
private final MetricsRegionAggregateSourceImpl agg
private final DynamicMetricsRegistry registry
private final String regionNamePrefix
private final String regionPutKey
private final String regionDeleteKey
private final String regionGetKey
private final String regionIncrementKey
private final String regionAppendKey
private final String regionScanKey
private final MutableFastCounter regionPut
private final MutableFastCounter regionDelete
private final MutableFastCounter regionIncrement
private final MutableFastCounter regionAppend
private final MutableFastCounter regionGet
private final MutableFastCounter regionScan
private final int hashCode
public MetricsRegionSourceImpl(MetricsRegionWrapper regionWrapper, MetricsRegionAggregateSourceImpl aggregate)
public void close()
MetricsRegionSource
close
in interface MetricsRegionSource
public void updatePut()
MetricsRegionSource
updatePut
in interface MetricsRegionSource
public void updateDelete()
MetricsRegionSource
updateDelete
in interface MetricsRegionSource
public void updateGet(long mills)
MetricsRegionSource
updateGet
in interface MetricsRegionSource
mills
- time for this get operation.public void updateScanTime(long mills)
MetricsRegionSource
updateScanTime
in interface MetricsRegionSource
public void updateIncrement()
MetricsRegionSource
updateIncrement
in interface MetricsRegionSource
public void updateAppend()
MetricsRegionSource
updateAppend
in interface MetricsRegionSource
public MetricsRegionAggregateSource getAggregateSource()
MetricsRegionSource
getAggregateSource
in interface MetricsRegionSource
public int compareTo(MetricsRegionSource source)
compareTo
in interface Comparable<MetricsRegionSource>
void snapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder mrb, boolean ignored)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.