Class MetricsThrottleExceptions
java.lang.Object
org.apache.hadoop.hbase.regionserver.metrics.MetricsThrottleExceptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
The name of the metrics context that metrics will be under.private static final String
Descriptionprivate static final String
The name of the metrics context that metrics will be under in jmxprivate static final String
The name of the metricsprivate final MetricRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
qualifyThrottleMetric
(RpcThrottlingException.Type throttleType, String user, String table) void
recordThrottleException
(RpcThrottlingException.Type throttleType, String user, String table) Record a throttle exception with contextual information.private static String
sanitizeMetricName
(String name)
-
Field Details
-
METRICS_NAME
The name of the metrics- See Also:
-
METRICS_CONTEXT
The name of the metrics context that metrics will be under.- See Also:
-
METRICS_DESCRIPTION
Description- See Also:
-
METRICS_JMX_CONTEXT
The name of the metrics context that metrics will be under in jmx- See Also:
-
registry
-
-
Constructor Details
-
MetricsThrottleExceptions
-
-
Method Details
-
recordThrottleException
public void recordThrottleException(RpcThrottlingException.Type throttleType, String user, String table) Record a throttle exception with contextual information.- Parameters:
throttleType
- the type of throttle exceptionuser
- the user who triggered the throttletable
- the table that was being accessed
-
qualifyThrottleMetric
private static String qualifyThrottleMetric(RpcThrottlingException.Type throttleType, String user, String table) -
sanitizeMetricName
-