Package org.apache.hadoop.hbase.quotas
Class TestQuotaTableUtil
java.lang.Object
org.apache.hadoop.hbase.quotas.TestQuotaTableUtil
Test the quota table helpers (e.g. CRUD operations)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate org.apache.hadoop.hbase.client.Connectionorg.junit.rules.TestNameprivate intprivate static final HBaseTestingUtilorg.junit.rules.TestName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafter()voidbefore()private voidprivate org.apache.hadoop.hbase.TableNamestatic voidstatic voidvoidvoidvoidvoidvoidvoidvoidprivate voidverifyTableSnapshotSize(org.apache.hadoop.hbase.client.Table quotaTable, org.apache.hadoop.hbase.TableName tn, String snapshotName, long expectedSize)
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
connection
-
tableNameCounter
-
testName
-
name
-
-
Constructor Details
-
TestQuotaTableUtil
public TestQuotaTableUtil()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
before
- Throws:
IOException
-
after
- Throws:
IOException
-
testDeleteSnapshots
- Throws:
Exception
-
testTableQuotaUtil
- Throws:
Exception
-
testNamespaceQuotaUtil
- Throws:
Exception
-
testUserQuotaUtil
- Throws:
Exception
-
testSerDeViolationPolicies
- Throws:
Exception
-
testSerdeTableSnapshotSizes
- Throws:
Exception
-
testReadNamespaceSnapshotSizes
- Throws:
Exception
-
getUniqueTableName
-
verifyTableSnapshotSize
private void verifyTableSnapshotSize(org.apache.hadoop.hbase.client.Table quotaTable, org.apache.hadoop.hbase.TableName tn, String snapshotName, long expectedSize) throws IOException - Throws:
IOException
-
cleanUpSnapshotSizes
- Throws:
IOException
-