Package org.apache.hadoop.hbase.quotas
Class QuotaState
java.lang.Object
org.apache.hadoop.hbase.quotas.QuotaState
- Direct Known Subclasses:
UserQuotaState
In-Memory state of table or namespace quotas
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the limiter associated with this quota.booleanisBypass()Returns true if there is no quota information associated to this object(package private) voidsetGlobalLimiter(QuotaLimiter globalLimiter) visible for testingvoidsetQuotas(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) Setup the global quota information.toString()voidupdate(QuotaState other) Perform an update of the quota info based on the other quota info object.
-
Field Details
-
globalLimiter
-
-
Constructor Details
-
QuotaState
public QuotaState()
-
-
Method Details
-
toString
-
isBypass
Returns true if there is no quota information associated to this object -
setQuotas
public void setQuotas(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) Setup the global quota information. (This operation is part of the QuotaState setup) -
setGlobalLimiter
visible for testing -
update
Perform an update of the quota info based on the other quota info object. (This operation is executed by the QuotaCache) -
getGlobalLimiter
Return the limiter associated with this quota.- Returns:
- the quota limiter
-