public class TestRowProcessorEndpoint extends Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
TestRowProcessorEndpoint.IncrementRunner |
static class |
TestRowProcessorEndpoint.RowProcessorEndpoint<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>
This class defines two RowProcessors:
IncrementCounterProcessor and FriendsOfFriendsProcessor.
|
(package private) class |
TestRowProcessorEndpoint.SwapRowsRunner |
Modifier and Type | Field and Description |
---|---|
private static byte[] |
A |
private static byte[] |
B |
private static byte[] |
C |
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
COUNTER |
private static byte[] |
D |
private CountDownLatch |
doneSignal |
private static byte[] |
E |
private static int |
expectedCounter |
private static byte[] |
F |
private AtomicInteger |
failures |
private static byte[] |
FAM |
private static byte[] |
G |
private static org.slf4j.Logger |
LOG |
private static AtomicLong |
myTimer |
private static byte[] |
ROW |
private static byte[] |
ROW2 |
private static int |
row2Size |
private static int |
rowSize |
private CountDownLatch |
startSignal |
private static boolean |
swapped |
private static org.apache.hadoop.hbase.client.Table |
table |
private static org.apache.hadoop.hbase.TableName |
TABLE |
private static HBaseTestingUtility |
util |
Constructor and Description |
---|
TestRowProcessorEndpoint() |
Modifier and Type | Method and Description |
---|---|
private void |
concurrentExec(Runnable task,
int numThreads) |
private int |
incrementCounter(org.apache.hadoop.hbase.client.Table table) |
void |
prepareTestData() |
static void |
setupBeforeClass() |
(package private) static String |
stringifyKvs(Collection<org.apache.hadoop.hbase.Cell> kvs) |
private void |
swapRows(org.apache.hadoop.hbase.client.Table table) |
static void |
tearDownAfterClass() |
void |
testDoubleScan() |
void |
testMultipleRows() |
void |
testReadModifyWrite() |
void |
testTimeout() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final org.apache.hadoop.hbase.TableName TABLE
private static final byte[] ROW
private static final byte[] ROW2
private static final byte[] FAM
private static final byte[] A
private static final byte[] B
private static final byte[] C
private static final byte[] D
private static final byte[] E
private static final byte[] F
private static final byte[] G
private static final byte[] COUNTER
private static final AtomicLong myTimer
private final AtomicInteger failures
private static HBaseTestingUtility util
private static volatile int expectedCounter
private static int rowSize
private static int row2Size
private static volatile org.apache.hadoop.hbase.client.Table table
private static volatile boolean swapped
private volatile CountDownLatch startSignal
private volatile CountDownLatch doneSignal
public TestRowProcessorEndpoint()
public static void setupBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void prepareTestData() throws Exception
Exception
public void testDoubleScan() throws Throwable
Throwable
public void testReadModifyWrite() throws Throwable
Throwable
private int incrementCounter(org.apache.hadoop.hbase.client.Table table) throws Throwable
Throwable
private void concurrentExec(Runnable task, int numThreads) throws Throwable
Throwable
public void testMultipleRows() throws Throwable
Throwable
private void swapRows(org.apache.hadoop.hbase.client.Table table) throws Throwable
Throwable
public void testTimeout() throws Throwable
Throwable
static String stringifyKvs(Collection<org.apache.hadoop.hbase.Cell> kvs)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.