Package org.apache.zookeeper.server.util
Class QuotaMetricsUtils
java.lang.Object
org.apache.zookeeper.server.util.QuotaMetricsUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetQuotaBytesLimit
(DataTree dataTree) Traverse the quota subtree and return per namespace quota bytes limit `getQuotaBytesUsage
(DataTree dataTree) Traverse the quota subtree and return per namespace quota bytes usagegetQuotaCountLimit
(DataTree dataTree) Traverse the quota subtree and return per namespace quota count limitgetQuotaCountUsage
(DataTree dataTree) Traverse the quota subtree and return per namespace quota count usage
-
Field Details
-
QUOTA_COUNT_LIMIT_PER_NAMESPACE
- See Also:
-
QUOTA_BYTES_LIMIT_PER_NAMESPACE
- See Also:
-
QUOTA_COUNT_USAGE_PER_NAMESPACE
- See Also:
-
QUOTA_BYTES_USAGE_PER_NAMESPACE
- See Also:
-
QUOTA_EXCEEDED_ERROR_PER_NAMESPACE
- See Also:
-
-
Method Details
-
getQuotaCountLimit
Traverse the quota subtree and return per namespace quota count limit- Parameters:
dataTree
- dataTree that contains the quota limit and usage data- Returns:
- a map with top namespace as the key and quota count limit as the value
-
getQuotaBytesLimit
Traverse the quota subtree and return per namespace quota bytes limit `- Parameters:
dataTree
- dataTree that contains the quota limit and usage data- Returns:
- a map with top namespace as the key and quota bytes limit as the value
-
getQuotaCountUsage
Traverse the quota subtree and return per namespace quota count usage- Parameters:
dataTree
- dataTree that contains the quota limit and usage data- Returns:
- a map with top namespace as the key and quota count usage as the value
-
getQuotaBytesUsage
Traverse the quota subtree and return per namespace quota bytes usage- Parameters:
dataTree
- dataTree that contains the quota limit and usage data- Returns:
- a map with top namespace as the key and quota bytes usage as the value
-