@InterfaceAudience.Private @InterfaceStability.Evolving public class UserQuotaState extends QuotaState
Modifier and Type | Field and Description |
---|---|
private boolean |
bypassGlobals |
private Map<String,QuotaLimiter> |
namespaceLimiters |
private Map<TableName,QuotaLimiter> |
tableLimiters |
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() |
private <K> Map<K,QuotaLimiter> |
setLimiter(Map<K,QuotaLimiter> limiters,
K key,
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) |
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.
|
private static <K> Map<K,QuotaLimiter> |
updateLimiters(Map<K,QuotaLimiter> map,
Map<K,QuotaLimiter> otherMap) |
getGlobalLimiter, getGlobalLimiterWithoutUpdatingLastQuery, getLastQuery, getLastUpdate
private Map<String,QuotaLimiter> namespaceLimiters
private Map<TableName,QuotaLimiter> tableLimiters
private boolean bypassGlobals
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)
private <K> Map<K,QuotaLimiter> setLimiter(Map<K,QuotaLimiter> limiters, K key, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
public void update(QuotaState other)
update
in class QuotaState
private static <K> Map<K,QuotaLimiter> updateLimiters(Map<K,QuotaLimiter> map, Map<K,QuotaLimiter> otherMap)
public QuotaLimiter getTableLimiter(TableName table)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.