Package org.apache.hadoop.hbase.quotas
Enum QuotaScope
- All Implemented Interfaces:
Serializable
,Comparable<QuotaScope>
Describe the Scope of the quota rules. The quota can be enforced at the cluster level or at
machine level.
-
Enum Constant Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic QuotaScope
Returns the enum constant of this type with the specified name.static QuotaScope[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
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
-
QuotaScope
private QuotaScope()
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-