Package org.apache.hadoop.hbase.quotas
Class TestFileArchiverNotifierImpl
java.lang.Object
org.apache.hadoop.hbase.quotas.TestFileArchiverNotifierImpl
Test class for
FileArchiverNotifierImpl
.-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.Admin
static final HBaseClassTestRule
private org.apache.hadoop.conf.Configuration
private org.apache.hadoop.hbase.client.Connection
private static final AtomicLong
private org.apache.hadoop.fs.FileSystem
private SpaceQuotaHelperForTests
private static final HBaseTestingUtil
org.junit.rules.TestName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate long
count
(org.apache.hadoop.hbase.client.Table t) private <K,
V> Map.Entry<K, V> entry
(K k, V v) private long
extractSnapshotSize
(org.apache.hadoop.hbase.client.Table quotaTable, org.apache.hadoop.hbase.TableName tn, String snapshot) getFilesReferencedBySnapshot
(String snapshotName) void
setup()
static void
setUp()
static void
tearDown()
void
void
void
private void
verify
(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
-