@InterfaceAudience.Private @InterfaceStability.Evolving public class QuotaCache extends Object implements Stoppable
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
REFRESH_CONF_KEY |
| 构造器和说明 |
|---|
QuotaCache(RegionServerServices rsServices) |
| 限定符和类型 | 方法和说明 |
|---|---|
QuotaLimiter |
getNamespaceLimiter(String namespace)
Returns the limiter associated to the specified namespace.
|
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.
|
boolean |
isStopped() |
void |
start() |
void |
stop(String why) |
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 limitCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.