public abstract class TestRSGroupsBase extends AbstractTestUpdateConfiguration
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 HBaseClusterInterface |
CLUSTER |
protected static String |
GROUP_PREFIX |
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 String |
TABLE_PREFIX |
protected org.apache.hadoop.hbase.TableName |
tableName |
protected static HBaseTestingUtil |
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) |
static String |
getNameWithoutIndex(String name) |
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 void |
toggleQuotaCheckAndRestartMiniCluster(boolean enable) |
addResourceToRegionServerConfiguration, replaceHBaseSiteXML, restoreHBaseSiteXML, setUpConfigurationFiles
protected static final org.slf4j.Logger LOG
protected static final String GROUP_PREFIX
protected static final String TABLE_PREFIX
protected static HBaseTestingUtil TEST_UTIL
protected static org.apache.hadoop.hbase.client.Admin ADMIN
protected static HBaseClusterInterface CLUSTER
protected static org.apache.hadoop.hbase.master.HMaster MASTER
protected boolean INIT
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 String getNameWithoutIndex(String name)
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 final org.apache.hadoop.hbase.rsgroup.RSGroupInfo addGroup(String groupName, int serverCount) throws IOException, InterruptedException
IOException
InterruptedException
protected final void removeGroup(String groupName) throws IOException
IOException
protected final void deleteTableIfNecessary() throws IOException
IOException
protected final void deleteNamespaceIfNecessary() throws IOException
IOException
protected final 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 final String getGroupName(String baseName)
protected final org.apache.hadoop.hbase.ServerName getServerName(org.apache.hadoop.hbase.net.Address addr)
protected final void toggleQuotaCheckAndRestartMiniCluster(boolean enable) throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.