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
Exceptionpublic void clearQuotaTable() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testThrottleType() throws Exception
Exceptionpublic void testSimpleScan() throws Exception
Exceptionpublic void testMultiQuotaThrottling() throws Exception
Exceptionpublic void testQuotaRetrieverFilter() throws Exception
Exceptionpublic void testSetGetRemoveSpaceQuota() throws Exception
Exceptionpublic void testSetModifyRemoveSpaceQuota() throws Exception
Exceptionprivate void assertNumResults(int expected, org.apache.hadoop.hbase.quotas.QuotaFilter filter) throws Exception
Exceptionpublic void testSetGetRemoveRPCQuota() throws Exception
Exceptionpublic void testSetModifyRemoveRPCQuota() throws Exception
Exceptionprivate void verifyRecordPresentInQuotaTable(org.apache.hadoop.hbase.quotas.ThrottleType type, long limit, TimeUnit tu) throws Exception
Exceptionprivate void verifyRecordNotPresentInQuotaTable() throws Exception
Exceptionprivate void verifyFetchableViaAPI(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.quotas.ThrottleType type, long limit, TimeUnit tu) throws Exception
Exceptionprivate void verifyNotFetchableViaAPI(org.apache.hadoop.hbase.client.Admin admin) throws Exception
Exceptionprivate void assertRPCQuota(org.apache.hadoop.hbase.quotas.ThrottleType type, long limit, TimeUnit tu, org.apache.hadoop.hbase.Cell cell) throws Exception
Exceptionprivate void assertRPCQuota(org.apache.hadoop.hbase.quotas.ThrottleType type, long limit, TimeUnit tu, org.apache.hadoop.hbase.quotas.QuotaSettings actualSettings) throws Exception
Exceptionprivate void assertSpaceQuota(long sizeLimit, org.apache.hadoop.hbase.quotas.SpaceViolationPolicy violationPolicy, org.apache.hadoop.hbase.Cell cell) throws Exception
Exceptionprivate 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
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.