@InterfaceAudience.Private public class MetricsRegionSourceImpl extends Object implements MetricsRegionSource
COMPACTIONS_COMPLETED_COUNT, COMPACTIONS_COMPLETED_DESC, COPROCESSOR_EXECUTION_STATISTICS, COPROCESSOR_EXECUTION_STATISTICS_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, 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() |
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().
|
public MetricsRegionSourceImpl(MetricsRegionWrapper regionWrapper, MetricsRegionAggregateSourceImpl aggregate)
public void close()
MetricsRegionSourceclose in interface MetricsRegionSourcepublic void updatePut()
MetricsRegionSourceupdatePut in interface MetricsRegionSourcepublic void updateDelete()
MetricsRegionSourceupdateDelete in interface MetricsRegionSourcepublic void updateGet(long mills)
MetricsRegionSourceupdateGet in interface MetricsRegionSourcemills - time for this get operation.public void updateScanTime(long mills)
MetricsRegionSourceupdateScanTime in interface MetricsRegionSourcepublic void updateIncrement()
MetricsRegionSourceupdateIncrement in interface MetricsRegionSourcepublic void updateAppend()
MetricsRegionSourceupdateAppend in interface MetricsRegionSourcepublic MetricsRegionAggregateSource getAggregateSource()
MetricsRegionSourcegetAggregateSource in interface MetricsRegionSourcepublic int compareTo(MetricsRegionSource source)
compareTo in interface Comparable<MetricsRegionSource>