@InterfaceAudience.Private @InterfaceStability.Evolving public class UserQuotaState extends QuotaState
globalLimiter, lastQuery, lastUpdate
Constructor and Description |
---|
UserQuotaState() |
UserQuotaState(long updateTs) |
Modifier and Type | Method and Description |
---|---|
QuotaLimiter |
getTableLimiter(TableName table)
Return the limiter for the specified table associated with this quota.
|
boolean |
hasBypassGlobals() |
boolean |
isBypass() |
void |
setQuotas(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
Setup the global quota information.
|
void |
setQuotas(String namespace,
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
Add the quota information of the specified namespace.
|
void |
setQuotas(TableName table,
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
Add the quota information of the specified table.
|
String |
toString() |
void |
update(QuotaState other)
Perform an update of the quota state based on the other quota state object.
|
getGlobalLimiter, getLastQuery, getLastUpdate
public UserQuotaState()
public UserQuotaState(long updateTs)
public String toString()
toString
in class QuotaState
public boolean isBypass()
isBypass
in class QuotaState
public boolean hasBypassGlobals()
public void setQuotas(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
QuotaState
setQuotas
in class QuotaState
public void setQuotas(TableName table, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
public void setQuotas(String namespace, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
public void update(QuotaState other)
update
in class QuotaState
public QuotaLimiter getTableLimiter(TableName table)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.