Class TestScannerLeaseCount.MockedRpcQuotaManager
java.lang.Object
org.apache.hadoop.hbase.quotas.RegionServerRpcQuotaManager
org.apache.hadoop.hbase.regionserver.TestScannerLeaseCount.MockedRpcQuotaManager
- All Implemented Interfaces:
org.apache.hadoop.hbase.quotas.RpcQuotaManager
- Enclosing class:
- TestScannerLeaseCount
private static class TestScannerLeaseCount.MockedRpcQuotaManager
extends org.apache.hadoop.hbase.quotas.RegionServerRpcQuotaManager
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.apache.hadoop.hbase.quotas.RpcThrottlingException
-
Constructor Summary
ConstructorDescriptionMockedRpcQuotaManager
(org.apache.hadoop.hbase.regionserver.RegionServerServices rsServices) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.quotas.OperationQuota
checkBatchQuota
(org.apache.hadoop.hbase.regionserver.Region region, int numWrites, int numReads) org.apache.hadoop.hbase.quotas.OperationQuota
checkBatchQuota
(org.apache.hadoop.hbase.regionserver.Region region, List<org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.Action> actions, boolean hasCondition) org.apache.hadoop.hbase.quotas.OperationQuota
checkBatchQuota
(org.apache.hadoop.hbase.regionserver.Region region, org.apache.hadoop.hbase.quotas.OperationQuota.OperationType type) org.apache.hadoop.hbase.quotas.OperationQuota
checkScanQuota
(org.apache.hadoop.hbase.regionserver.Region region, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanRequest scanRequest, long maxScannerResultSize, long maxBlockBytesScanned, long prevBlockBytesScannedDifference) Methods inherited from class org.apache.hadoop.hbase.quotas.RegionServerRpcQuotaManager
getQuota, isRpcThrottleEnabled, start, stop, switchRpcThrottle
-
Field Details
-
EX
-
-
Constructor Details
-
MockedRpcQuotaManager
-
-
Method Details
-
checkScanQuota
public org.apache.hadoop.hbase.quotas.OperationQuota checkScanQuota(org.apache.hadoop.hbase.regionserver.Region region, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanRequest scanRequest, long maxScannerResultSize, long maxBlockBytesScanned, long prevBlockBytesScannedDifference) throws IOException, org.apache.hadoop.hbase.quotas.RpcThrottlingException - Specified by:
checkScanQuota
in interfaceorg.apache.hadoop.hbase.quotas.RpcQuotaManager
- Overrides:
checkScanQuota
in classorg.apache.hadoop.hbase.quotas.RegionServerRpcQuotaManager
- Throws:
IOException
org.apache.hadoop.hbase.quotas.RpcThrottlingException
-
checkBatchQuota
public org.apache.hadoop.hbase.quotas.OperationQuota checkBatchQuota(org.apache.hadoop.hbase.regionserver.Region region, org.apache.hadoop.hbase.quotas.OperationQuota.OperationType type) throws IOException, org.apache.hadoop.hbase.quotas.RpcThrottlingException - Specified by:
checkBatchQuota
in interfaceorg.apache.hadoop.hbase.quotas.RpcQuotaManager
- Overrides:
checkBatchQuota
in classorg.apache.hadoop.hbase.quotas.RegionServerRpcQuotaManager
- Throws:
IOException
org.apache.hadoop.hbase.quotas.RpcThrottlingException
-
checkBatchQuota
public org.apache.hadoop.hbase.quotas.OperationQuota checkBatchQuota(org.apache.hadoop.hbase.regionserver.Region region, List<org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.Action> actions, boolean hasCondition) throws IOException, org.apache.hadoop.hbase.quotas.RpcThrottlingException - Specified by:
checkBatchQuota
in interfaceorg.apache.hadoop.hbase.quotas.RpcQuotaManager
- Overrides:
checkBatchQuota
in classorg.apache.hadoop.hbase.quotas.RegionServerRpcQuotaManager
- Throws:
IOException
org.apache.hadoop.hbase.quotas.RpcThrottlingException
-
checkBatchQuota
public org.apache.hadoop.hbase.quotas.OperationQuota checkBatchQuota(org.apache.hadoop.hbase.regionserver.Region region, int numWrites, int numReads) throws IOException, org.apache.hadoop.hbase.quotas.RpcThrottlingException - Specified by:
checkBatchQuota
in interfaceorg.apache.hadoop.hbase.quotas.RpcQuotaManager
- Overrides:
checkBatchQuota
in classorg.apache.hadoop.hbase.quotas.RegionServerRpcQuotaManager
- Throws:
IOException
org.apache.hadoop.hbase.quotas.RpcThrottlingException
-