Enum QuotaScope

java.lang.Object
java.lang.Enum<QuotaScope>
org.apache.hadoop.hbase.quotas.QuotaScope
All Implemented Interfaces:
Serializable, Comparable<QuotaScope>

@Public public enum QuotaScope extends Enum<QuotaScope>
Describe the Scope of the quota rules. The quota can be enforced at the cluster level or at machine level.
  • Enum Constant Details

    • CLUSTER

      public static final QuotaScope CLUSTER
      The specified throttling rules will be applied at the cluster level. A limit of 100req/min means 100req/min in total. If you execute 50req on a machine and then 50req on another machine then you have to wait your quota to fill up.
    • MACHINE

      public static final QuotaScope MACHINE
      The specified throttling rules will be applied on the machine level. A limit of 100req/min means that each machine can execute 100req/min.
  • Constructor Details

  • Method Details

    • values

      public static QuotaScope[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static QuotaScope valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null