public class TestFileArchiverNotifierImpl extends Object
FileArchiverNotifierImpl
.Modifier and Type | Class and Description |
---|---|
private static interface |
TestFileArchiverNotifierImpl.IOThrowingRunnable |
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.hbase.client.Admin |
admin |
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
conf |
private org.apache.hadoop.hbase.client.Connection |
conn |
private static AtomicLong |
COUNTER |
private org.apache.hadoop.fs.FileSystem |
fs |
private SpaceQuotaHelperForTests |
helper |
private static HBaseTestingUtility |
TEST_UTIL |
org.junit.rules.TestName |
testName |
Constructor and Description |
---|
TestFileArchiverNotifierImpl() |
Modifier and Type | Method and Description |
---|---|
private 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) |
private Set<String> |
getFilesReferencedBySnapshot(String snapshotName) |
void |
setup() |
static void |
setUp() |
static void |
tearDown() |
void |
testIncrementalFileArchiving() |
void |
testParseOldNamespaceSnapshotSize() |
void |
testSnapshotSizePersistence() |
private void |
verify(org.apache.hadoop.hbase.client.Table t,
TestFileArchiverNotifierImpl.IOThrowingRunnable test) |
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility TEST_UTIL
private static final AtomicLong COUNTER
public org.junit.rules.TestName testName
private org.apache.hadoop.hbase.client.Connection conn
private org.apache.hadoop.hbase.client.Admin admin
private SpaceQuotaHelperForTests helper
private org.apache.hadoop.fs.FileSystem fs
private org.apache.hadoop.conf.Configuration conf
public TestFileArchiverNotifierImpl()
public void testSnapshotSizePersistence() throws IOException
IOException
public void testIncrementalFileArchiving() throws Exception
Exception
public void testParseOldNamespaceSnapshotSize() throws Exception
Exception
private long count(org.apache.hadoop.hbase.client.Table t) throws IOException
IOException
private long extractSnapshotSize(org.apache.hadoop.hbase.client.Table quotaTable, org.apache.hadoop.hbase.TableName tn, String snapshot) throws IOException
IOException
private void verify(org.apache.hadoop.hbase.client.Table t, TestFileArchiverNotifierImpl.IOThrowingRunnable test) throws IOException
IOException
private Set<String> getFilesReferencedBySnapshot(String snapshotName) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.