@InterfaceAudience.Private public class MetricsMasterQuotaSourceImpl extends BaseSourceImpl implements MetricsMasterQuotaSource
MetricsMasterQuotaSource which writes the values passed in via the
interface to the metrics backend.metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistryMETRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, NS_QUOTA_USAGE_DESC, NS_QUOTA_USAGE_NAME, NUM_NS_QUOTA_VIOLATIONS_DESC, NUM_NS_QUOTA_VIOLATIONS_NAME, NUM_REGION_SIZE_REPORTS_DESC, NUM_REGION_SIZE_REPORTS_NAME, NUM_SPACE_QUOTAS_DESC, NUM_SPACE_QUOTAS_NAME, NUM_TABLES_QUOTA_VIOLATIONS_DESC, NUM_TABLES_QUOTA_VIOLATIONS_NAME, QUOTA_OBSERVER_CHORE_TIME_DESC, QUOTA_OBSERVER_CHORE_TIME_NAME, TABLE_QUOTA_USAGE_DESC, TABLE_QUOTA_USAGE_NAMEHBASE_METRICS_SYSTEM_NAME| Constructor and Description |
|---|
MetricsMasterQuotaSourceImpl(MetricsMasterWrapper wrapper) |
MetricsMasterQuotaSourceImpl(java.lang.String metricsName,
java.lang.String metricsDescription,
java.lang.String metricsContext,
java.lang.String metricsJmxContext,
MetricsMasterWrapper wrapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
getMetrics(MetricsCollector metricsCollector,
boolean all) |
void |
incrementSpaceQuotaObserverChoreTime(long time)
Updates the metric tracking the amount of time taken by the
QuotaObserverChore
which runs periodically. |
void |
updateNumCurrentSpaceQuotaRegionSizeReports(long numCurrentRegionSizeReports)
Updates the metric tracking the number of region size reports the master is currently
retaining in memory.
|
void |
updateNumNamespacesInSpaceQuotaViolation(long numNamespacesInViolation)
Updates the metric tracking the number of namespaces the master has computed to be in
violation of their space quota.
|
void |
updateNumSpaceQuotas(long numSpaceQuotas)
Updates the metric tracking the number of space quotas defined in the system.
|
void |
updateNumTablesInSpaceQuotaViolation(long numTablesInViolation)
Updates the metric tracking the number of tables the master has computed to be in
violation of their space quota.
|
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, removeMetric, setGauge, updateHistogramclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogrampublic MetricsMasterQuotaSourceImpl(MetricsMasterWrapper wrapper)
public MetricsMasterQuotaSourceImpl(java.lang.String metricsName,
java.lang.String metricsDescription,
java.lang.String metricsContext,
java.lang.String metricsJmxContext,
MetricsMasterWrapper wrapper)
public void updateNumSpaceQuotas(long numSpaceQuotas)
MetricsMasterQuotaSourceupdateNumSpaceQuotas in interface MetricsMasterQuotaSourcenumSpaceQuotas - The number of space quotas definedpublic void updateNumTablesInSpaceQuotaViolation(long numTablesInViolation)
MetricsMasterQuotaSourceupdateNumTablesInSpaceQuotaViolation in interface MetricsMasterQuotaSourcenumTablesInViolation - The number of tables violating a space quotapublic void updateNumNamespacesInSpaceQuotaViolation(long numNamespacesInViolation)
MetricsMasterQuotaSourceupdateNumNamespacesInSpaceQuotaViolation in interface MetricsMasterQuotaSourcenumNamespacesInViolation - The number of namespaces violating a space quotapublic void updateNumCurrentSpaceQuotaRegionSizeReports(long numCurrentRegionSizeReports)
MetricsMasterQuotaSourceupdateNumCurrentSpaceQuotaRegionSizeReports in interface MetricsMasterQuotaSourcenumCurrentRegionSizeReports - The number of region size reports the master is holding in
memorypublic void incrementSpaceQuotaObserverChoreTime(long time)
MetricsMasterQuotaSourceQuotaObserverChore
which runs periodically.incrementSpaceQuotaObserverChoreTime in interface MetricsMasterQuotaSourcetime - The execution time of the chore in millisecondspublic void getMetrics(MetricsCollector metricsCollector,
boolean all)
getMetrics in class BaseSourceImpl