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.(package private) QuotaLimiterReturn the limiter associated with this quota without updating internal last query statslonglongbooleanisBypass()Returns true if there is no quota information associated to this objectvoidsetQuotas(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
-
lastUpdate
-
lastQuery
-
globalLimiter
-
-
Constructor Details
-
QuotaState
public QuotaState() -
QuotaState
-
-
Method Details
-
getLastUpdate
-
getLastQuery
-
toString
-
isBypass
Returns true if there is no quota information associated to this object -
setQuotas
Setup the global quota information. (This operation is part of the QuotaState setup) -
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
-
getGlobalLimiterWithoutUpdatingLastQuery
Return the limiter associated with this quota without updating internal last query stats- Returns:
- the quota limiter
-