Package org.apache.hadoop.hbase.quotas
Class TestMasterQuotasObserver
java.lang.Object
org.apache.hadoop.hbase.quotas.TestMasterQuotasObserver
Test class for
MasterQuotasObserver.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static SpaceQuotaHelperForTestsprivate static final HBaseTestingUtilorg.junit.rules.TestName -
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) intintbooleanvoidstatic voidsetUp()static voidtearDown()voidvoidvoidvoidvoidvoidvoid
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
helper
-
testName
-
-
Constructor Details
-
TestMasterQuotasObserver
public TestMasterQuotasObserver()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
removeAllQuotas
- Throws:
Exception
-
testTableSpaceQuotaRemoved
- Throws:
Exception
-
testTableRPCQuotaRemoved
- Throws:
Exception
-
testTableSpaceAndRPCQuotaRemoved
- Throws:
Exception
-
testNamespaceSpaceQuotaRemoved
- Throws:
Exception
-
testNamespaceRPCQuotaRemoved
- Throws:
Exception
-
testNamespaceSpaceAndRPCQuotaRemoved
- 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
-