@InterfaceAudience.Private @InterfaceStability.Evolving public class QuotaState extends Object
Modifier and Type | Field and Description |
---|---|
protected QuotaLimiter |
globalLimiter |
protected long |
lastQuery |
protected long |
lastUpdate |
Constructor and Description |
---|
QuotaState() |
QuotaState(long updateTs) |
Modifier and Type | Method and Description |
---|---|
QuotaLimiter |
getGlobalLimiter()
Return the limiter associated with this quota.
|
(package private) QuotaLimiter |
getGlobalLimiterWithoutUpdatingLastQuery()
Return the limiter associated with this quota without updating internal last query stats
|
long |
getLastQuery() |
long |
getLastUpdate() |
boolean |
isBypass() |
void |
setQuotas(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
Setup the global quota information.
|
String |
toString() |
void |
update(QuotaState other)
Perform an update of the quota info based on the other quota info object.
|
protected long lastUpdate
protected long lastQuery
protected QuotaLimiter globalLimiter
public QuotaState()
public QuotaState(long updateTs)
public long getLastUpdate()
public long getLastQuery()
public boolean isBypass()
public void setQuotas(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
public void update(QuotaState other)
public QuotaLimiter getGlobalLimiter()
QuotaLimiter getGlobalLimiterWithoutUpdatingLastQuery()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.