@InterfaceAudience.Private public class MetricsRegionServerQuotaSourceImpl extends BaseSourceImpl implements MetricsRegionServerQuotaSource
MetricsRegionServerQuotaSource
.Modifier and Type | Field and Description |
---|---|
private Timer |
fileSystemUtilizationChoreTimer |
private Counter |
regionSizeReportCounter |
private Timer |
regionSizeReportingChoreTimer |
private Timer |
spaceQuotaRefresherChoreTimer |
private Meter |
spaceQuotaSnapshotsReceived |
private Meter |
tablesInViolationCounter |
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registry
FILE_SYSTEM_UTILIZATION_CHORE_TIME, METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, NUM_REGION_SIZE_REPORT_NAME, NUM_SPACE_SNAPSHOTS_RECEIVED_NAME, NUM_TABLES_IN_VIOLATION_NAME, REGION_SIZE_REPORTING_CHORE_TIME_NAME, SPACE_QUOTA_REFRESHER_CHORE_TIME
HBASE_METRICS_SYSTEM_NAME
Constructor and Description |
---|
MetricsRegionServerQuotaSourceImpl() |
MetricsRegionServerQuotaSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext) |
Modifier and Type | Method and Description |
---|---|
void |
incrementNumRegionSizeReportsSent(long numReportsSent)
Updates the metric tracking how many region size reports were sent from this RegionServer to
the Master.
|
void |
incrementRegionSizeReportingChoreTime(long time)
Updates the metric tracking how much time was spent sending region size reports to the Master
by the RegionSizeReportingChore.
|
void |
incrementSpaceQuotaFileSystemScannerChoreTime(long time)
Updates the metric tracking how much time was spent scanning the filesystem to compute the size
of each region hosted by this RegionServer.
|
void |
incrementSpaceQuotaRefresherChoreTime(long time)
Updates the metric tracking how much time was spent updating the RegionServer with the latest
information on space quotas from the
hbase:quota table. |
void |
updateNumTablesInSpaceQuotaViolation(long tablesInViolation)
Updates the metric tracking how many tables this RegionServer has marked as in violation of
their space quota.
|
void |
updateNumTableSpaceQuotaSnapshots(long numSnapshots)
Updates the metric tracking how many tables this RegionServer has received
SpaceQuotaSnapshot s for. |
decGauge, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
private final Meter tablesInViolationCounter
private final Meter spaceQuotaSnapshotsReceived
private final Timer fileSystemUtilizationChoreTimer
private final Timer spaceQuotaRefresherChoreTimer
private final Counter regionSizeReportCounter
private final Timer regionSizeReportingChoreTimer
public MetricsRegionServerQuotaSourceImpl()
public MetricsRegionServerQuotaSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
public void updateNumTablesInSpaceQuotaViolation(long tablesInViolation)
MetricsRegionServerQuotaSource
updateNumTablesInSpaceQuotaViolation
in interface MetricsRegionServerQuotaSource
public void updateNumTableSpaceQuotaSnapshots(long numSnapshots)
MetricsRegionServerQuotaSource
SpaceQuotaSnapshot
s for.updateNumTableSpaceQuotaSnapshots
in interface MetricsRegionServerQuotaSource
numSnapshots
- The number of SpaceQuotaSnapshot
s received from the Master.public void incrementSpaceQuotaFileSystemScannerChoreTime(long time)
MetricsRegionServerQuotaSource
incrementSpaceQuotaFileSystemScannerChoreTime
in interface MetricsRegionServerQuotaSource
time
- The execution time of the chore in milliseconds.public void incrementSpaceQuotaRefresherChoreTime(long time)
MetricsRegionServerQuotaSource
hbase:quota
table.incrementSpaceQuotaRefresherChoreTime
in interface MetricsRegionServerQuotaSource
time
- The execution time of the chore in milliseconds.public void incrementNumRegionSizeReportsSent(long numReportsSent)
MetricsRegionServerQuotaSource
incrementNumRegionSizeReportsSent
in interface MetricsRegionServerQuotaSource
numReportsSent
- The number of region size reports sentpublic void incrementRegionSizeReportingChoreTime(long time)
MetricsRegionServerQuotaSource
incrementRegionSizeReportingChoreTime
in interface MetricsRegionServerQuotaSource
time
- The execution time in milliseconds.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.