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
Nested ClassesModifier and TypeClassDescriptionstatic classprotected static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static org.apache.hadoop.hbase.client.Adminprotected static HBaseClusterInterfaceprotected static final Stringprotected booleanprotected static final org.slf4j.Loggerprotected static org.apache.hadoop.hbase.master.HMasterprotected final TestRSGroupsBase.MethodNamestatic intstatic final intprotected static TestRSGroupsBase.CPMasterObserverprotected static final Stringprotected org.apache.hadoop.hbase.TableNameprotected static HBaseTestingUtilstatic final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final org.apache.hadoop.hbase.rsgroup.RSGroupInfoprotected final voidprotected final voidprotected final voidprotected final StringgetGroupName(String baseName) static StringgetNameWithoutIndex(String name) protected intprotected final 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 final voidremoveGroup(String groupName) voidsetUpBeforeMethod(org.junit.jupiter.api.TestInfo testInfo) static voidstatic voidvoidprotected final voidtoggleQuotaCheckAndRestartMiniCluster(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:
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 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
-