public abstract class AbstractTestProtobufLog<W extends Closeable> extends Object
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.TestName |
currentTest |
protected org.apache.hadoop.fs.Path |
dir |
protected org.apache.hadoop.fs.FileSystem |
fs |
protected static HBaseTestingUtility |
TEST_UTIL |
protected WALFactory |
wals |
| Constructor and Description |
|---|
AbstractTestProtobufLog() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
append(W writer,
WAL.Entry entry) |
protected abstract W |
createWriter(org.apache.hadoop.fs.Path path) |
void |
setUp() |
static void |
setUpBeforeClass() |
protected abstract void |
sync(W writer) |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testWALTrailer()
Reads the WAL with and without WALTrailer.
|
protected static final HBaseTestingUtility TEST_UTIL
protected org.apache.hadoop.fs.FileSystem fs
protected org.apache.hadoop.fs.Path dir
protected WALFactory wals
public final org.junit.rules.TestName currentTest
public AbstractTestProtobufLog()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testWALTrailer() throws IOException
IOExceptionprotected abstract W createWriter(org.apache.hadoop.fs.Path path) throws IOException
IOExceptionprotected abstract void append(W writer, WAL.Entry entry) throws IOException
IOExceptionprotected abstract void sync(W writer) throws IOException
IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.