public abstract class TestRSGroupsBase extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestRSGroupsBase.CPMasterObserver |
Modifier and Type | Field and Description |
---|---|
protected static org.apache.hadoop.hbase.client.Admin |
admin |
protected static HBaseCluster |
cluster |
protected static String |
groupPrefix |
protected boolean |
INIT |
protected static org.slf4j.Logger |
LOG |
protected static org.apache.hadoop.hbase.master.HMaster |
master |
org.junit.rules.TestName |
name |
static int |
NUM_DEAD_SERVERS |
static int |
NUM_SLAVES_BASE |
protected static TestRSGroupsBase.CPMasterObserver |
observer |
protected static Random |
rand |
protected static org.apache.hadoop.hbase.rsgroup.RSGroupAdmin |
rsGroupAdmin |
protected static org.apache.hadoop.hbase.rsgroup.RSGroupAdminEndpoint |
rsGroupAdminEndpoint |
protected org.apache.hadoop.hbase.TableName |
tableName |
protected static String |
tablePrefix |
protected static HBaseTestingUtility |
TEST_UTIL |
static long |
WAIT_TIMEOUT |
Constructor and Description |
---|
TestRSGroupsBase() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.hadoop.hbase.rsgroup.RSGroupInfo |
addGroup(String groupName,
int serverCount) |
protected void |
deleteGroups() |
protected void |
deleteNamespaceIfNecessary() |
protected void |
deleteTableIfNecessary() |
protected String |
getGroupName(String baseName) |
protected int |
getNumServers() |
protected org.apache.hadoop.hbase.ServerName |
getServerName(org.apache.hadoop.hbase.net.Address addr)
The server name in group does not contain the start code, this method will find out the start
code and construct the ServerName object.
|
protected Map<org.apache.hadoop.hbase.TableName,List<String>> |
getTableRegionMap() |
protected Map<org.apache.hadoop.hbase.TableName,Map<org.apache.hadoop.hbase.ServerName,List<String>>> |
getTableServerRegionMap() |
protected static void |
initialize() |
protected void |
removeGroup(String groupName) |
void |
setUpBeforeMethod() |
static void |
setUpTestBeforeClass() |
static void |
tearDownAfterClass() |
void |
tearDownAfterMethod() |
protected static final org.slf4j.Logger LOG
protected static final String groupPrefix
protected static final String tablePrefix
protected static HBaseTestingUtility TEST_UTIL
protected static org.apache.hadoop.hbase.client.Admin admin
protected static HBaseCluster cluster
protected static org.apache.hadoop.hbase.rsgroup.RSGroupAdmin rsGroupAdmin
protected static org.apache.hadoop.hbase.master.HMaster master
protected boolean INIT
protected static org.apache.hadoop.hbase.rsgroup.RSGroupAdminEndpoint rsGroupAdminEndpoint
protected static TestRSGroupsBase.CPMasterObserver observer
public static final long WAIT_TIMEOUT
public static final int NUM_SLAVES_BASE
public static int NUM_DEAD_SERVERS
public org.junit.rules.TestName name
protected org.apache.hadoop.hbase.TableName tableName
public TestRSGroupsBase()
public static void setUpTestBeforeClass() throws Exception
Exception
protected static void initialize() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void setUpBeforeMethod() throws Exception
Exception
public void tearDownAfterMethod() throws Exception
Exception
protected org.apache.hadoop.hbase.rsgroup.RSGroupInfo addGroup(String groupName, int serverCount) throws IOException, InterruptedException
IOException
InterruptedException
protected void removeGroup(String groupName) throws IOException
IOException
protected void deleteTableIfNecessary() throws IOException
IOException
protected void deleteNamespaceIfNecessary() throws IOException
IOException
protected void deleteGroups() throws IOException
IOException
protected Map<org.apache.hadoop.hbase.TableName,List<String>> getTableRegionMap() throws IOException
IOException
protected Map<org.apache.hadoop.hbase.TableName,Map<org.apache.hadoop.hbase.ServerName,List<String>>> getTableServerRegionMap() throws IOException
IOException
protected int getNumServers() throws IOException
IOException
protected String getGroupName(String baseName)
protected org.apache.hadoop.hbase.ServerName getServerName(org.apache.hadoop.hbase.net.Address addr)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.