Package org.apache.hadoop.hbase.quotas
Class TestMasterQuotasObserver
java.lang.Object
org.apache.hadoop.hbase.quotas.TestMasterQuotasObserver
Test class for
MasterQuotasObserver
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static SpaceQuotaHelperForTests
private static final HBaseTestingUtil
org.junit.rules.TestName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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
int
boolean
void
static void
setUp()
static void
tearDown()
void
void
void
void
void
void
void
-
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
-