@InterfaceAudience.Private @InterfaceStability.Evolving public class ExceedOperationQuota extends DefaultOperationQuota
OperationQuota.OperationType
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
private QuotaLimiter |
regionServerLimiter |
limiters, readAvailable, readCapacityUnitConsumed, readCapacityUnitDiff, readConsumed, readDiff, writeAvailable, writeCapacityUnitConsumed, writeCapacityUnitDiff, writeConsumed, writeDiff
Constructor and Description |
---|
ExceedOperationQuota(org.apache.hadoop.conf.Configuration conf,
QuotaLimiter regionServerLimiter,
QuotaLimiter... limiters) |
Modifier and Type | Method and Description |
---|---|
void |
checkQuota(int numWrites,
int numReads,
int numScans)
Checks if it is possible to execute the specified operation.
|
void |
close()
Cleanup method on operation completion
|
addGetResult, addMutation, addScanResult, getReadAvailable, getWriteAvailable, updateEstimateConsumeQuota
private static final org.slf4j.Logger LOG
private QuotaLimiter regionServerLimiter
public ExceedOperationQuota(org.apache.hadoop.conf.Configuration conf, QuotaLimiter regionServerLimiter, QuotaLimiter... limiters)
public void checkQuota(int numWrites, int numReads, int numScans) throws RpcThrottlingException
OperationQuota
checkQuota
in interface OperationQuota
checkQuota
in class DefaultOperationQuota
numWrites
- number of write operation that will be performednumReads
- number of small-read operation that will be performednumScans
- number of long-read operation that will be performedRpcThrottlingException
- if the operation cannot be performed because
RPC quota is exceeded.public void close()
OperationQuota
close
in interface OperationQuota
close
in class DefaultOperationQuota
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.