@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.
|
long |
getLastQuery() |
long |
getLastUpdate() |
boolean |
isBypass() |
void |
setQuotas(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 long getLastUpdate()
public long getLastQuery()
public boolean isBypass()
public void setQuotas(QuotaProtos.Quotas quotas)
public void update(QuotaState other)
public QuotaLimiter getGlobalLimiter()
Copyright © 2007–2019 Cloudera. All rights reserved.