Package org.apache.hadoop.hbase.rsgroup
Class TestRSGroupsBase
java.lang.Object
org.apache.hadoop.hbase.client.AbstractTestUpdateConfiguration
org.apache.hadoop.hbase.rsgroup.TestRSGroupsBase
- Direct Known Subclasses:
TestRSGroupConfig
,TestRSGroupsAdmin1
,TestRSGroupsAdmin2
,TestRSGroupsBalance
,TestRSGroupsBasics
,TestRSGroupsFallback
,TestRSGroupsKillRS
,TestTableDescriptorWithRSGroup
,TestUpdateRSGroupConfiguration
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected static org.apache.hadoop.hbase.client.Admin
protected static HBaseCluster
protected static final String
protected boolean
protected static final org.slf4j.Logger
protected static org.apache.hadoop.hbase.master.HMaster
org.junit.rules.TestName
static int
static final int
protected static TestRSGroupsBase.CPMasterObserver
protected static final Random
protected static org.apache.hadoop.hbase.rsgroup.RSGroupAdmin
protected static org.apache.hadoop.hbase.rsgroup.RSGroupAdminEndpoint
protected org.apache.hadoop.hbase.TableName
protected static final String
protected static HBaseTestingUtility
static final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hadoop.hbase.rsgroup.RSGroupInfo
protected void
protected void
protected void
protected String
getGroupName
(String baseName) protected int
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,
Map<org.apache.hadoop.hbase.ServerName, List<String>>> protected static void
protected void
removeGroup
(String groupName) void
static void
static void
void
Methods inherited from class org.apache.hadoop.hbase.client.AbstractTestUpdateConfiguration
addResourceToRegionServerConfiguration, replaceHBaseSiteXML, restoreHBaseSiteXML, setUpConfigurationFiles
-
Field Details
-
LOG
-
groupPrefix
- See Also:
-
tablePrefix
- See Also:
-
rand
-
TEST_UTIL
-
admin
-
cluster
-
rsGroupAdmin
-
master
-
INIT
-
rsGroupAdminEndpoint
-
observer
-
WAIT_TIMEOUT
- See Also:
-
NUM_SLAVES_BASE
- See Also:
-
NUM_DEAD_SERVERS
-
name
-
tableName
-
-
Constructor Details
-
TestRSGroupsBase
public TestRSGroupsBase()
-
-
Method Details
-
setUpTestBeforeClass
- Throws:
Exception
-
initialize
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
setUpBeforeMethod
- Throws:
Exception
-
tearDownAfterMethod
- Throws:
Exception
-
addGroup
protected org.apache.hadoop.hbase.rsgroup.RSGroupInfo addGroup(String groupName, int serverCount) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
removeGroup
- Throws:
IOException
-
deleteTableIfNecessary
- Throws:
IOException
-
deleteNamespaceIfNecessary
- Throws:
IOException
-
deleteGroups
- Throws:
IOException
-
getTableRegionMap
protected Map<org.apache.hadoop.hbase.TableName,List<String>> getTableRegionMap() throws IOException- Throws:
IOException
-
getTableServerRegionMap
protected Map<org.apache.hadoop.hbase.TableName,Map<org.apache.hadoop.hbase.ServerName, getTableServerRegionMap() throws IOExceptionList<String>>> - Throws:
IOException
-
getNumServers
- Throws:
IOException
-
getGroupName
-
getServerName
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.
-