public class TestQuotaAdmin extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestQuotaAdmin() |
Modifier and Type | Method and Description |
---|---|
private void |
assertNumResults(int expected,
org.apache.hadoop.hbase.quotas.QuotaFilter filter) |
private void |
assertRPCQuota(org.apache.hadoop.hbase.quotas.ThrottleType type,
long limit,
TimeUnit tu,
org.apache.hadoop.hbase.Cell cell) |
private void |
assertRPCQuota(org.apache.hadoop.hbase.quotas.ThrottleType type,
long limit,
TimeUnit tu,
org.apache.hadoop.hbase.quotas.QuotaSettings actualSettings) |
private void |
assertSpaceQuota(long sizeLimit,
org.apache.hadoop.hbase.quotas.SpaceViolationPolicy violationPolicy,
org.apache.hadoop.hbase.Cell cell) |
private void |
assertSpaceQuota(long sizeLimit,
org.apache.hadoop.hbase.quotas.SpaceViolationPolicy violationPolicy,
org.apache.hadoop.hbase.quotas.QuotaSettings actualSettings) |
void |
clearQuotaTable() |
private int |
countResults(org.apache.hadoop.hbase.quotas.QuotaFilter filter) |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testMultiQuotaThrottling() |
void |
testQuotaRetrieverFilter() |
void |
testSetGetRemoveRPCQuota() |
void |
testSetGetRemoveSpaceQuota() |
void |
testSetModifyRemoveRPCQuota() |
void |
testSetModifyRemoveSpaceQuota() |
void |
testSimpleScan() |
void |
testThrottleType() |
private void |
verifyFetchableViaAPI(org.apache.hadoop.hbase.client.Admin admin,
org.apache.hadoop.hbase.quotas.ThrottleType type,
long limit,
TimeUnit tu) |
private void |
verifyNotFetchableViaAPI(org.apache.hadoop.hbase.client.Admin admin) |
private void |
verifyRecordNotPresentInQuotaTable() |
private void |
verifyRecordPresentInQuotaTable(org.apache.hadoop.hbase.quotas.ThrottleType type,
long limit,
TimeUnit tu) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
public TestQuotaAdmin()
public static void setUpBeforeClass() throws Exception
Exception
public void clearQuotaTable() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testThrottleType() throws Exception
Exception
public void testSimpleScan() throws Exception
Exception
public void testMultiQuotaThrottling() throws Exception
Exception
public void testQuotaRetrieverFilter() throws Exception
Exception
public void testSetGetRemoveSpaceQuota() throws Exception
Exception
public void testSetModifyRemoveSpaceQuota() throws Exception
Exception
private void assertNumResults(int expected, org.apache.hadoop.hbase.quotas.QuotaFilter filter) throws Exception
Exception
public void testSetGetRemoveRPCQuota() throws Exception
Exception
public void testSetModifyRemoveRPCQuota() throws Exception
Exception
private void verifyRecordPresentInQuotaTable(org.apache.hadoop.hbase.quotas.ThrottleType type, long limit, TimeUnit tu) throws Exception
Exception
private void verifyRecordNotPresentInQuotaTable() throws Exception
Exception
private void verifyFetchableViaAPI(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.quotas.ThrottleType type, long limit, TimeUnit tu) throws Exception
Exception
private void verifyNotFetchableViaAPI(org.apache.hadoop.hbase.client.Admin admin) throws Exception
Exception
private void assertRPCQuota(org.apache.hadoop.hbase.quotas.ThrottleType type, long limit, TimeUnit tu, org.apache.hadoop.hbase.Cell cell) throws Exception
Exception
private void assertRPCQuota(org.apache.hadoop.hbase.quotas.ThrottleType type, long limit, TimeUnit tu, org.apache.hadoop.hbase.quotas.QuotaSettings actualSettings) throws Exception
Exception
private void assertSpaceQuota(long sizeLimit, org.apache.hadoop.hbase.quotas.SpaceViolationPolicy violationPolicy, org.apache.hadoop.hbase.Cell cell) throws Exception
Exception
private void assertSpaceQuota(long sizeLimit, org.apache.hadoop.hbase.quotas.SpaceViolationPolicy violationPolicy, org.apache.hadoop.hbase.quotas.QuotaSettings actualSettings)
private int countResults(org.apache.hadoop.hbase.quotas.QuotaFilter filter) throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.