@InterfaceAudience.Private @InterfaceStability.Evolving public class RegionServerQuotaManager extends Object
| Constructor and Description | 
|---|
| RegionServerQuotaManager(RegionServerServices rsServices) | 
| Modifier and Type | Method and Description | 
|---|---|
| OperationQuota | checkQuota(Region region,
          List<ClientProtos.Action> actions)Check the quota for the current (rpc-context) user. | 
| OperationQuota | checkQuota(Region region,
          OperationQuota.OperationType type)Check the quota for the current (rpc-context) user. | 
| OperationQuota | getQuota(org.apache.hadoop.security.UserGroupInformation ugi,
        TableName table)Returns the quota for an operation. | 
| boolean | isQuotaEnabled() | 
| void | start(RpcScheduler rpcScheduler) | 
| void | stop() | 
public RegionServerQuotaManager(RegionServerServices rsServices)
public void start(RpcScheduler rpcScheduler) throws IOException
IOExceptionpublic void stop()
public boolean isQuotaEnabled()
public OperationQuota getQuota(org.apache.hadoop.security.UserGroupInformation ugi, TableName table)
ugi - the user that is executing the operationtable - the table where the operation will be executedpublic OperationQuota checkQuota(Region region, OperationQuota.OperationType type) throws IOException, ThrottlingException
region - the region where the operation will be performedtype - the operation typeThrottlingException - if the operation cannot be executed due to quota exceeded.IOExceptionpublic OperationQuota checkQuota(Region region, List<ClientProtos.Action> actions) throws IOException, ThrottlingException
region - the region where the operation will be performedactions - the "multi" actions to performThrottlingException - if the operation cannot be executed due to quota exceeded.IOExceptionCopyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.