Package org.apache.hadoop.hbase.quotas
Class TestFileArchiverNotifierImpl
java.lang.Object
org.apache.hadoop.hbase.quotas.TestFileArchiverNotifierImpl
Test class for
FileArchiverNotifierImpl.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.Adminstatic final HBaseClassTestRuleprivate org.apache.hadoop.conf.Configurationprivate org.apache.hadoop.hbase.client.Connectionprivate static final AtomicLongprivate org.apache.hadoop.fs.FileSystemprivate SpaceQuotaHelperForTestsprivate static final HBaseTestingUtilityorg.junit.rules.TestName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate longcount(org.apache.hadoop.hbase.client.Table t) private <K,V> Map.Entry<K, V> entry(K k, V v) private longextractSnapshotSize(org.apache.hadoop.hbase.client.Table quotaTable, org.apache.hadoop.hbase.TableName tn, String snapshot) getFilesReferencedBySnapshot(String snapshotName) voidsetup()static voidsetUp()static voidtearDown()voidvoidvoidprivate voidverify(org.apache.hadoop.hbase.client.Table t, TestFileArchiverNotifierImpl.IOThrowingRunnable test)
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
COUNTER
-
testName
-
conn
-
admin
-
helper
-
fs
-
conf
-
-
Constructor Details
-
TestFileArchiverNotifierImpl
public TestFileArchiverNotifierImpl()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
setup
- Throws:
Exception
-
testSnapshotSizePersistence
- Throws:
IOException
-
testIncrementalFileArchiving
- Throws:
Exception
-
testParseOldNamespaceSnapshotSize
- Throws:
Exception
-
count
- Throws:
IOException
-
extractSnapshotSize
private long extractSnapshotSize(org.apache.hadoop.hbase.client.Table quotaTable, org.apache.hadoop.hbase.TableName tn, String snapshot) throws IOException - Throws:
IOException
-
verify
private void verify(org.apache.hadoop.hbase.client.Table t, TestFileArchiverNotifierImpl.IOThrowingRunnable test) throws IOException - Throws:
IOException
-
getFilesReferencedBySnapshot
- Throws:
IOException
-
entry
-