@InterfaceAudience.Private @InterfaceStability.Evolving public class QuotaCache extends Object implements Stoppable
| Modifier and Type | Field and Description |
|---|---|
static String |
REFRESH_CONF_KEY |
| Constructor and Description |
|---|
QuotaCache(RegionServerServices rsServices) |
| Modifier and Type | Method and Description |
|---|---|
QuotaLimiter |
getNamespaceLimiter(String namespace)
Returns the limiter associated to the specified namespace.
|
QuotaLimiter |
getRegionServerQuotaLimiter(String regionServer)
Returns the limiter associated to the specified region server.
|
QuotaLimiter |
getTableLimiter(TableName table)
Returns the limiter associated to the specified table.
|
QuotaLimiter |
getUserLimiter(org.apache.hadoop.security.UserGroupInformation ugi,
TableName table)
Returns the limiter associated to the specified user/table.
|
UserQuotaState |
getUserQuotaState(org.apache.hadoop.security.UserGroupInformation ugi)
Returns the QuotaState associated to the specified user.
|
protected boolean |
isExceedThrottleQuotaEnabled() |
boolean |
isStopped() |
void |
start() |
void |
stop(String why) |
public static final String REFRESH_CONF_KEY
public QuotaCache(RegionServerServices rsServices)
public void start()
throws IOException
IOExceptionpublic QuotaLimiter getUserLimiter(org.apache.hadoop.security.UserGroupInformation ugi, TableName table)
ugi - the user to limittable - the table to limitpublic UserQuotaState getUserQuotaState(org.apache.hadoop.security.UserGroupInformation ugi)
ugi - the userpublic QuotaLimiter getTableLimiter(TableName table)
table - the table to limitpublic QuotaLimiter getNamespaceLimiter(String namespace)
namespace - the namespace to limitpublic QuotaLimiter getRegionServerQuotaLimiter(String regionServer)
regionServer - the region server to limitprotected boolean isExceedThrottleQuotaEnabled()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.