@InterfaceAudience.Private @InterfaceStability.Evolving public class QuotaState extends Object
Modifier and Type | Field and Description |
---|---|
private QuotaLimiter |
globalLimiter |
private long |
lastQuery |
private 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 |
setLastQuery(long lastQuery) |
void |
setQuotas(org.apache.hadoop.hbase.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.
|
private long lastUpdate
private long lastQuery
private QuotaLimiter globalLimiter
public long getLastUpdate()
public long getLastQuery()
public boolean isBypass()
public void setQuotas(org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.Quotas quotas)
public void update(QuotaState other)
public QuotaLimiter getGlobalLimiter()
QuotaLimiter getGlobalLimiterWithoutUpdatingLastQuery()
public void setLastQuery(long lastQuery)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.