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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the limiter associated with this quota.(package private) QuotaLimiter
Return the limiter associated with this quota without updating internal last query statslong
long
boolean
isBypass()
Returns true if there is no quota information associated to this objectvoid
setQuotas
(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) Setup the global quota information.toString()
void
update
(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
-