Package org.apache.hadoop.hbase.master
Class MetricsMaster
java.lang.Object
org.apache.hadoop.hbase.master.MetricsMaster
This class is for maintaining the various master statistics and publishing them through the
metrics interfaces.
This class has a number of metrics variables that are publicly accessible; these variables (objects) have methods to update their values.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private MetricsMasterProcSource
private MetricsMasterQuotaSource
private MetricsMasterSource
private ProcedureMetrics
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProcedureMetrics
This is utility function that convertsOperationMetrics
toProcedureMetrics
.Returns Set of metrics for assign procedurevoid
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 theSnapshotQuotaObserverChore
.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.
-
Field Details
-
LOG
-
masterSource
-
masterProcSource
-
masterQuotaSource
-
serverCrashProcMetrics
-
-
Constructor Details
-
MetricsMaster
-
-
Method Details
-
getMetricsSource
-
getMetricsProcSource
-
getMetricsQuotaSource
-
incrementRequests
- Parameters:
inc
- How much to add to requests.
-
setNumSpaceQuotas
Sets the number of space quotas defined. -
setNumTableInSpaceQuotaViolation
Sets the number of table in violation of a space quota. -
setNumNamespacesInSpaceQuotaViolation
Sets the number of namespaces in violation of a space quota. -
setNumRegionSizeReports
Sets the number of region size reports the master currently has in memory. -
incrementQuotaObserverTime
Sets the execution time of a period of the QuotaObserverChore.- Parameters:
executionTime
- The execution time in milliseconds.- See Also:
-
getServerCrashProcMetrics
Returns Set of metrics for assign procedure -
convertToProcedureMetrics
This is utility function that convertsOperationMetrics
toProcedureMetrics
. NOTE: Procedure framework in hbase-procedure module accesses metrics common to most procedures throughProcedureMetrics
interface. Metrics source classes in hbase-hadoop-compat module provides similar interfaceOperationMetrics
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. -
incrementSnapshotObserverTime
Sets the execution time of a period of theSnapshotQuotaObserverChore
. -
incrementSnapshotSizeComputationTime
Sets the execution time to compute the size of a single snapshot. -
incrementSnapshotFetchTime
Sets the execution time to fetch the mapping of snapshots to originating table.
-