public class RestoreSnapshotFromClientTestBase extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.hbase.client.Admin |
admin |
protected String |
emptySnapshot |
protected byte[] |
FAMILY |
org.junit.rules.TestName |
name |
protected int |
snapshot0Rows |
protected int |
snapshot1Rows |
protected String |
snapshotName0 |
protected String |
snapshotName1 |
protected String |
snapshotName2 |
protected org.apache.hadoop.hbase.TableName |
tableName |
protected byte[] |
TEST_FAMILY2 |
protected static HBaseTestingUtil |
TEST_UTIL |
Constructor and Description |
---|
RestoreSnapshotFromClientTestBase() |
Modifier and Type | Method and Description |
---|---|
protected int |
countRows(org.apache.hadoop.hbase.client.Table table,
byte[]... families) |
protected void |
createTable() |
protected int |
getNumReplicas() |
protected String |
getValidMethodName() |
void |
setup()
Initialize the tests with a table filled with some data and two snapshots (snapshotName0,
snapshotName1) of different states.
|
static void |
setupCluster() |
protected static void |
setupConf(org.apache.hadoop.conf.Configuration conf) |
protected void |
splitRegion(org.apache.hadoop.hbase.client.RegionInfo regionInfo) |
void |
tearDown() |
static void |
tearDownAfterClass() |
protected void |
verifyRowCount(HBaseTestingUtil util,
org.apache.hadoop.hbase.TableName tableName,
long expectedRows) |
protected static final HBaseTestingUtil TEST_UTIL
protected final byte[] FAMILY
protected final byte[] TEST_FAMILY2
protected org.apache.hadoop.hbase.TableName tableName
protected String emptySnapshot
protected String snapshotName0
protected String snapshotName1
protected String snapshotName2
protected int snapshot0Rows
protected int snapshot1Rows
protected org.apache.hadoop.hbase.client.Admin admin
public org.junit.rules.TestName name
public RestoreSnapshotFromClientTestBase()
public static void setupCluster() throws Exception
Exception
protected static void setupConf(org.apache.hadoop.conf.Configuration conf)
public static void tearDownAfterClass() throws Exception
Exception
public void setup() throws Exception
Exception
protected void createTable() throws Exception
Exception
protected int getNumReplicas()
protected int countRows(org.apache.hadoop.hbase.client.Table table, byte[]... families) throws IOException
IOException
protected void verifyRowCount(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName tableName, long expectedRows) throws IOException
IOException
protected final void splitRegion(org.apache.hadoop.hbase.client.RegionInfo regionInfo) throws IOException
IOException
protected final String getValidMethodName()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.