public class TestMasterQuotasObserver extends Object
MasterQuotasObserver.| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static SpaceQuotaHelperForTests |
helper |
private static HBaseTestingUtility |
TEST_UTIL |
org.junit.rules.TestName |
testName |
| Constructor and Description |
|---|
TestMasterQuotasObserver() |
| Modifier and Type | Method and Description |
|---|---|
private void |
createTable(org.apache.hadoop.hbase.client.Admin admin,
org.apache.hadoop.hbase.TableName tn) |
private void |
dropTable(org.apache.hadoop.hbase.client.Admin admin,
org.apache.hadoop.hbase.TableName tn) |
int |
getNumSpaceQuotas() |
int |
getThrottleQuotas() |
boolean |
namespaceExists(String ns) |
void |
removeAllQuotas() |
static void |
setUp() |
static void |
tearDown() |
void |
testNamespaceRPCQuotaRemoved() |
void |
testNamespaceSpaceAndRPCQuotaRemoved() |
void |
testNamespaceSpaceQuotaRemoved() |
void |
testObserverAddedByDefault() |
void |
testTableRPCQuotaRemoved() |
void |
testTableSpaceAndRPCQuotaRemoved() |
void |
testTableSpaceQuotaRemoved() |
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility TEST_UTIL
private static SpaceQuotaHelperForTests helper
public org.junit.rules.TestName testName
public TestMasterQuotasObserver()
public void removeAllQuotas() throws Exception
Exceptionpublic void testTableSpaceQuotaRemoved() throws Exception
Exceptionpublic void testTableRPCQuotaRemoved() throws Exception
Exceptionpublic void testTableSpaceAndRPCQuotaRemoved() throws Exception
Exceptionpublic void testNamespaceSpaceQuotaRemoved() throws Exception
Exceptionpublic void testNamespaceRPCQuotaRemoved() throws Exception
Exceptionpublic void testNamespaceSpaceAndRPCQuotaRemoved() throws Exception
Exceptionpublic void testObserverAddedByDefault() throws Exception
Exceptionpublic boolean namespaceExists(String ns) throws IOException
IOExceptionpublic int getNumSpaceQuotas() throws Exception
Exceptionpublic int getThrottleQuotas() throws Exception
Exceptionprivate void createTable(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.TableName tn) throws Exception
ExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.