Class QuotaMetricsUtils

java.lang.Object
org.apache.zookeeper.server.util.QuotaMetricsUtils

public final class QuotaMetricsUtils extends Object
  • Field Details

  • Method Details

    • 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