@InterfaceStability.Evolving @InterfaceAudience.Private public class MetricsMaster extends Object
This class has a number of metrics variables that are publicly accessible; these variables (objects) have methods to update their values.
| Modifier and Type | Field and Description | 
|---|---|
| private static org.slf4j.Logger | LOG | 
| private MetricsMasterProcSource | masterProcSource | 
| private MetricsMasterQuotaSource | masterQuotaSource | 
| private MetricsMasterSource | masterSource | 
| private ProcedureMetrics | serverCrashProcMetrics | 
| Constructor and Description | 
|---|
| MetricsMaster(MetricsMasterWrapper masterWrapper) | 
| Modifier and Type | Method and Description | 
|---|---|
| static ProcedureMetrics | convertToProcedureMetrics(OperationMetrics metrics)This is utility function that converts  OperationMetricstoProcedureMetrics. | 
| MetricsMasterProcSource | getMetricsProcSource() | 
| MetricsMasterQuotaSource | getMetricsQuotaSource() | 
| MetricsMasterSource | getMetricsSource() | 
| ProcedureMetrics | getServerCrashProcMetrics() | 
| void | incrementQuotaObserverTime(long executionTime)Sets the execution time of a period of the QuotaObserverChore. | 
| void | incrementRequests(long inc) | 
| void | incrementSnapshotFetchTime(long executionTime)Sets the execution time to fetch the mapping of snapshots to originating table. | 
| void | incrementSnapshotObserverTime(long executionTime)Sets the execution time of a period of the  SnapshotQuotaObserverChore. | 
| void | incrementSnapshotSizeComputationTime(long executionTime)Sets the execution time to compute the size of a single snapshot. | 
| void | setNumNamespacesInSpaceQuotaViolation(long numNamespacesInViolation)Sets the number of namespaces in violation of a space quota. | 
| void | setNumRegionSizeReports(long numRegionReports)Sets the number of region size reports the master currently has in memory. | 
| void | setNumSpaceQuotas(long numSpaceQuotas)Sets the number of space quotas defined. | 
| void | setNumTableInSpaceQuotaViolation(long numTablesInViolation)Sets the number of table in violation of a space quota. | 
private static final org.slf4j.Logger LOG
private MetricsMasterSource masterSource
private MetricsMasterProcSource masterProcSource
private MetricsMasterQuotaSource masterQuotaSource
private ProcedureMetrics serverCrashProcMetrics
public MetricsMaster(MetricsMasterWrapper masterWrapper)
public MetricsMasterSource getMetricsSource()
public MetricsMasterProcSource getMetricsProcSource()
public MetricsMasterQuotaSource getMetricsQuotaSource()
public void incrementRequests(long inc)
inc - How much to add to requests.public void setNumSpaceQuotas(long numSpaceQuotas)
public void setNumTableInSpaceQuotaViolation(long numTablesInViolation)
public void setNumNamespacesInSpaceQuotaViolation(long numNamespacesInViolation)
public void setNumRegionSizeReports(long numRegionReports)
public void incrementQuotaObserverTime(long executionTime)
executionTime - The execution time in milliseconds.MetricsMasterQuotaSource.incrementSpaceQuotaObserverChoreTime(long)public ProcedureMetrics getServerCrashProcMetrics()
public static ProcedureMetrics convertToProcedureMetrics(OperationMetrics metrics)
OperationMetrics to ProcedureMetrics.
 NOTE: Procedure framework in hbase-procedure module accesses metrics common to most procedures
 through ProcedureMetrics interface. Metrics source classes in hbase-hadoop-compat
 module provides similar interface OperationMetrics that contains metrics common to
 most operations. As both hbase-procedure and hbase-hadoop-compat are lower level modules used
 by hbase-server (this) module and there is no dependency between them, this method does the
 required conversion.public void incrementSnapshotObserverTime(long executionTime)
SnapshotQuotaObserverChore.public void incrementSnapshotSizeComputationTime(long executionTime)
public void incrementSnapshotFetchTime(long executionTime)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.