public class TestReplicationBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.hadoop.hbase.client.replication.ReplicationAdmin |
admin |
protected static org.apache.hadoop.conf.Configuration |
CONF_WITH_LOCALFS |
protected static org.apache.hadoop.conf.Configuration |
conf1 |
protected static org.apache.hadoop.conf.Configuration |
conf2 |
protected static byte[] |
famName |
protected static org.apache.hadoop.hbase.client.Admin |
hbaseAdmin |
protected static org.apache.hadoop.hbase.client.Table |
htable1 |
protected static org.apache.hadoop.hbase.client.Table |
htable2 |
private static org.slf4j.Logger |
LOG |
protected static int |
NB_RETRIES |
protected static int |
NB_ROWS_IN_BATCH |
protected static int |
NB_ROWS_IN_BIG_BATCH |
protected static byte[] |
noRepfamName |
protected static String |
PEER_ID2 |
protected static byte[] |
row |
protected static NavigableMap<byte[],Integer> |
scopes |
protected static long |
SLEEP_TIME |
protected static org.apache.hadoop.hbase.TableName |
tableName |
protected static HBaseTestingUtility |
utility1 |
protected static HBaseTestingUtility |
utility2 |
protected static org.apache.hadoop.hbase.zookeeper.ZKWatcher |
zkw1 |
protected static org.apache.hadoop.hbase.zookeeper.ZKWatcher |
zkw2 |
| Constructor and Description |
|---|
TestReplicationBase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanUp() |
protected boolean |
isSerialPeer() |
protected static void |
loadData(String prefix,
byte[] row) |
protected static void |
loadData(String prefix,
byte[] row,
byte[] familyName) |
private boolean |
peerExist(String peerId) |
protected static void |
runSimplePutDeleteTest() |
protected static void |
runSmallBatchTest() |
void |
setUpBase() |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
tearDownBase() |
protected static void |
waitForReplication(int expectedRows,
int retries) |
private static final org.slf4j.Logger LOG
protected static org.apache.hadoop.conf.Configuration conf1
protected static org.apache.hadoop.conf.Configuration conf2
protected static org.apache.hadoop.conf.Configuration CONF_WITH_LOCALFS
protected static org.apache.hadoop.hbase.zookeeper.ZKWatcher zkw1
protected static org.apache.hadoop.hbase.zookeeper.ZKWatcher zkw2
protected static org.apache.hadoop.hbase.client.replication.ReplicationAdmin admin
protected static org.apache.hadoop.hbase.client.Admin hbaseAdmin
protected static org.apache.hadoop.hbase.client.Table htable1
protected static org.apache.hadoop.hbase.client.Table htable2
protected static NavigableMap<byte[],Integer> scopes
protected static HBaseTestingUtility utility1
protected static HBaseTestingUtility utility2
protected static final int NB_ROWS_IN_BATCH
protected static final int NB_ROWS_IN_BIG_BATCH
protected static final long SLEEP_TIME
protected static final int NB_RETRIES
protected static final org.apache.hadoop.hbase.TableName tableName
protected static final byte[] famName
protected static final byte[] row
protected static final byte[] noRepfamName
protected static final String PEER_ID2
public TestReplicationBase()
protected boolean isSerialPeer()
protected final void cleanUp() throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected static void waitForReplication(int expectedRows, int retries) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected static void loadData(String prefix, byte[] row) throws IOException
IOExceptionprotected static void loadData(String prefix, byte[] row, byte[] familyName) throws IOException
IOExceptionpublic static void setUpBeforeClass() throws Exception
Exceptionprivate boolean peerExist(String peerId) throws IOException
IOExceptionpublic void tearDownBase() throws Exception
Exceptionprotected static void runSimplePutDeleteTest() throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected static void runSmallBatchTest() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static void tearDownAfterClass() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.