Package org.apache.hadoop.hbase.quotas
Class TestNoopOperationQuota
java.lang.Object
org.apache.hadoop.hbase.quotas.TestNoopOperationQuota
- All Implemented Interfaces:
org.apache.hadoop.hbase.quotas.OperationQuota
public class TestNoopOperationQuota
extends Object
implements org.apache.hadoop.hbase.quotas.OperationQuota
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.quotas.OperationQuota
org.apache.hadoop.hbase.quotas.OperationQuota.OperationType
-
Field Summary
Fields inherited from interface org.apache.hadoop.hbase.quotas.OperationQuota
USE_RESULT_SIZE_BYTES, USE_RESULT_SIZE_BYTES_DEFAULT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGetResult
(org.apache.hadoop.hbase.client.Result result) void
addMutation
(org.apache.hadoop.hbase.client.Mutation mutation) void
addScanResult
(List<org.apache.hadoop.hbase.client.Result> results) void
addScanResultCells
(List<org.apache.hadoop.hbase.Cell> cells) void
checkBatchQuota
(int numWrites, int numReads) void
checkScanQuota
(org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanRequest scanRequest, long maxScannerResultSize, long maxBlockBytesScanned, long prevBlockBytesScannedDifference) void
close()
long
long
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.quotas.OperationQuota
getMaxResultSize
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
TestNoopOperationQuota
public TestNoopOperationQuota()
-
-
Method Details
-
checkBatchQuota
public void checkBatchQuota(int numWrites, int numReads) throws org.apache.hadoop.hbase.quotas.RpcThrottlingException - Specified by:
checkBatchQuota
in interfaceorg.apache.hadoop.hbase.quotas.OperationQuota
- Throws:
org.apache.hadoop.hbase.quotas.RpcThrottlingException
-
checkScanQuota
public void checkScanQuota(org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanRequest scanRequest, long maxScannerResultSize, long maxBlockBytesScanned, long prevBlockBytesScannedDifference) throws org.apache.hadoop.hbase.quotas.RpcThrottlingException - Specified by:
checkScanQuota
in interfaceorg.apache.hadoop.hbase.quotas.OperationQuota
- Throws:
org.apache.hadoop.hbase.quotas.RpcThrottlingException
-
close
- Specified by:
close
in interfaceorg.apache.hadoop.hbase.quotas.OperationQuota
-
addGetResult
- Specified by:
addGetResult
in interfaceorg.apache.hadoop.hbase.quotas.OperationQuota
-
addScanResult
- Specified by:
addScanResult
in interfaceorg.apache.hadoop.hbase.quotas.OperationQuota
-
addScanResultCells
- Specified by:
addScanResultCells
in interfaceorg.apache.hadoop.hbase.quotas.OperationQuota
-
addMutation
- Specified by:
addMutation
in interfaceorg.apache.hadoop.hbase.quotas.OperationQuota
-
getReadAvailable
- Specified by:
getReadAvailable
in interfaceorg.apache.hadoop.hbase.quotas.OperationQuota
-
getReadConsumed
- Specified by:
getReadConsumed
in interfaceorg.apache.hadoop.hbase.quotas.OperationQuota
-