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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static org.apache.hadoop.hbase.client.Adminprotected static HBaseClusterprotected static final Stringprotected booleanprotected static final org.slf4j.Loggerprotected static org.apache.hadoop.hbase.master.HMasterorg.junit.rules.TestNamestatic intstatic final intprotected static TestRSGroupsBase.CPMasterObserverprotected static final Randomprotected static org.apache.hadoop.hbase.rsgroup.RSGroupAdminprotected static org.apache.hadoop.hbase.rsgroup.RSGroupAdminEndpointprotected org.apache.hadoop.hbase.TableNameprotected static final Stringprotected static HBaseTestingUtilitystatic final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hadoop.hbase.rsgroup.RSGroupInfoprotected voidprotected voidprotected voidprotected StringgetGroupName(String baseName) protected intprotected org.apache.hadoop.hbase.ServerNamegetServerName(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 voidprotected voidremoveGroup(String groupName) voidstatic voidstatic voidvoidMethods 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:
IOExceptionInterruptedException
-
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.
-