Package org.apache.zookeeper.server.util
Class QuotaMetricsUtils
- java.lang.Object
-
- org.apache.zookeeper.server.util.QuotaMetricsUtils
-
public final class QuotaMetricsUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
QUOTA_BYTES_LIMIT_PER_NAMESPACE
static String
QUOTA_BYTES_USAGE_PER_NAMESPACE
static String
QUOTA_COUNT_LIMIT_PER_NAMESPACE
static String
QUOTA_COUNT_USAGE_PER_NAMESPACE
static String
QUOTA_EXCEEDED_ERROR_PER_NAMESPACE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,Number>
getQuotaBytesLimit(DataTree dataTree)
Traverse the quota subtree and return per namespace quota bytes limit `static Map<String,Number>
getQuotaBytesUsage(DataTree dataTree)
Traverse the quota subtree and return per namespace quota bytes usagestatic Map<String,Number>
getQuotaCountLimit(DataTree dataTree)
Traverse the quota subtree and return per namespace quota count limitstatic Map<String,Number>
getQuotaCountUsage(DataTree dataTree)
Traverse the quota subtree and return per namespace quota count usage
-
-
-
Field Detail
-
QUOTA_COUNT_LIMIT_PER_NAMESPACE
public static final String QUOTA_COUNT_LIMIT_PER_NAMESPACE
- See Also:
- Constant Field Values
-
QUOTA_BYTES_LIMIT_PER_NAMESPACE
public static final String QUOTA_BYTES_LIMIT_PER_NAMESPACE
- See Also:
- Constant Field Values
-
QUOTA_COUNT_USAGE_PER_NAMESPACE
public static final String QUOTA_COUNT_USAGE_PER_NAMESPACE
- See Also:
- Constant Field Values
-
QUOTA_BYTES_USAGE_PER_NAMESPACE
public static final String QUOTA_BYTES_USAGE_PER_NAMESPACE
- See Also:
- Constant Field Values
-
QUOTA_EXCEEDED_ERROR_PER_NAMESPACE
public static final String QUOTA_EXCEEDED_ERROR_PER_NAMESPACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getQuotaCountLimit
public static Map<String,Number> getQuotaCountLimit(DataTree dataTree)
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
public static Map<String,Number> getQuotaBytesLimit(DataTree dataTree)
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
public static Map<String,Number> getQuotaCountUsage(DataTree dataTree)
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
public static Map<String,Number> getQuotaBytesUsage(DataTree dataTree)
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
-
-