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:
TestMigrateRSGroupInfo
,TestRSGroupConfig
,TestRSGroupsAdmin1
,TestRSGroupsAdmin2
,TestRSGroupsBalance
,TestRSGroupsBasics
,TestRSGroupsCPHookCalled
,TestRSGroupsFallback
,TestRSGroupsKillRS
,TestRSGroupsOfflineMode
,TestUpdateRSGroupConfiguration
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected static org.apache.hadoop.hbase.client.Admin
protected static HBaseClusterInterface
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 String
protected org.apache.hadoop.hbase.TableName
protected static HBaseTestingUtil
static final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final org.apache.hadoop.hbase.rsgroup.RSGroupInfo
protected final void
protected final void
protected final void
protected final String
getGroupName
(String baseName) static String
getNameWithoutIndex
(String name) protected int
protected final 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 final void
removeGroup
(String groupName) void
static void
static void
void
protected final void
toggleQuotaCheckAndRestartMiniCluster
(boolean enable) Methods inherited from class org.apache.hadoop.hbase.client.AbstractTestUpdateConfiguration
addResourceToRegionServerConfiguration, replaceHBaseSiteXML, restoreHBaseSiteXML, setUpConfigurationFiles
-
Field Details
-
LOG
-
GROUP_PREFIX
- See Also:
-
TABLE_PREFIX
- See Also:
-
TEST_UTIL
-
ADMIN
-
CLUSTER
-
MASTER
-
INIT
-
OBSERVER
-
WAIT_TIMEOUT
- See Also:
-
NUM_SLAVES_BASE
- See Also:
-
NUM_DEAD_SERVERS
-
name
-
tableName
-
-
Constructor Details
-
TestRSGroupsBase
public TestRSGroupsBase()
-
-
Method Details
-
getNameWithoutIndex
-
setUpTestBeforeClass
- Throws:
Exception
-
initialize
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
setUpBeforeMethod
- Throws:
Exception
-
tearDownAfterMethod
- Throws:
Exception
-
addGroup
protected final 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 final 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. -
toggleQuotaCheckAndRestartMiniCluster
- Throws:
Exception
-