public class TestQuotaState extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
org.junit.rules.TestName |
name |
private static org.apache.hadoop.hbase.TableName |
UNKNOWN_TABLE_NAME |
Constructor and Description |
---|
TestQuotaState() |
Modifier and Type | Method and Description |
---|---|
private void |
assertNoopLimiter(org.apache.hadoop.hbase.quotas.QuotaLimiter limiter) |
private void |
assertNoThrottleException(org.apache.hadoop.hbase.quotas.QuotaLimiter limiter,
int availReqs) |
private void |
assertThrottleException(org.apache.hadoop.hbase.quotas.QuotaLimiter limiter,
int availReqs) |
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas |
buildReqNumThrottle(long limit) |
void |
testQuotaStateBypass() |
void |
testQuotaStateUpdateBypassThrottle() |
void |
testQuotaStateUpdateGlobalThrottle() |
void |
testQuotaStateUpdateTableThrottle() |
void |
testSimpleQuotaStateOperation() |
void |
testTableThrottleWithBatch() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.apache.hadoop.hbase.TableName UNKNOWN_TABLE_NAME
public org.junit.rules.TestName name
public TestQuotaState()
public void testQuotaStateBypass()
public void testSimpleQuotaStateOperation()
public void testQuotaStateUpdateBypassThrottle()
public void testQuotaStateUpdateGlobalThrottle()
public void testQuotaStateUpdateTableThrottle()
public void testTableThrottleWithBatch()
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas buildReqNumThrottle(long limit)
private void assertThrottleException(org.apache.hadoop.hbase.quotas.QuotaLimiter limiter, int availReqs)
private void assertNoThrottleException(org.apache.hadoop.hbase.quotas.QuotaLimiter limiter, int availReqs)
private void assertNoopLimiter(org.apache.hadoop.hbase.quotas.QuotaLimiter limiter)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.