Package org.apache.hadoop.hbase.quotas
Class TestMasterQuotasObserver
java.lang.Object
org.apache.hadoop.hbase.quotas.TestMasterQuotasObserver
@Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestMasterQuotasObserver
extends Object
Test class for
MasterQuotasObserver.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static SpaceQuotaHelperForTestsprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcreateTable(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.TableName tn) private voiddropTable(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.TableName tn) intintbooleanvoidremoveAllQuotas(org.junit.jupiter.api.TestInfo testInfo) static voidsetUp()static voidtearDown()voidtestNamespaceRPCQuotaRemoved(org.junit.jupiter.api.TestInfo testInfo) voidtestNamespaceSpaceAndRPCQuotaRemoved(org.junit.jupiter.api.TestInfo testInfo) voidtestNamespaceSpaceQuotaRemoved(org.junit.jupiter.api.TestInfo testInfo) voidvoidtestTableRPCQuotaRemoved(org.junit.jupiter.api.TestInfo testInfo) voidtestTableSpaceAndRPCQuotaRemoved(org.junit.jupiter.api.TestInfo testInfo) voidtestTableSpaceQuotaRemoved(org.junit.jupiter.api.TestInfo testInfo)
-
Field Details
-
TEST_UTIL
-
helper
-
-
Constructor Details
-
TestMasterQuotasObserver
public TestMasterQuotasObserver()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
removeAllQuotas
- Throws:
Exception
-
testTableSpaceQuotaRemoved
@Test public void testTableSpaceQuotaRemoved(org.junit.jupiter.api.TestInfo testInfo) throws Exception - Throws:
Exception
-
testTableRPCQuotaRemoved
@Test public void testTableRPCQuotaRemoved(org.junit.jupiter.api.TestInfo testInfo) throws Exception - Throws:
Exception
-
testTableSpaceAndRPCQuotaRemoved
@Test public void testTableSpaceAndRPCQuotaRemoved(org.junit.jupiter.api.TestInfo testInfo) throws Exception - Throws:
Exception
-
testNamespaceSpaceQuotaRemoved
@Test public void testNamespaceSpaceQuotaRemoved(org.junit.jupiter.api.TestInfo testInfo) throws Exception - Throws:
Exception
-
testNamespaceRPCQuotaRemoved
@Test public void testNamespaceRPCQuotaRemoved(org.junit.jupiter.api.TestInfo testInfo) throws Exception - Throws:
Exception
-
testNamespaceSpaceAndRPCQuotaRemoved
@Test public void testNamespaceSpaceAndRPCQuotaRemoved(org.junit.jupiter.api.TestInfo testInfo) throws Exception - Throws:
Exception
-
testObserverAddedByDefault
- Throws:
Exception
-
namespaceExists
- Throws:
IOException
-
getNumSpaceQuotas
- Throws:
Exception
-
getThrottleQuotas
- Throws:
Exception
-
createTable
private void createTable(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.TableName tn) throws Exception - Throws:
Exception
-
dropTable
private void dropTable(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.TableName tn) throws Exception - Throws:
Exception
-