public abstract class TestRSGroupsBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static HBaseAdmin |
admin |
protected static HBaseCluster |
cluster |
protected static String |
groupPrefix |
protected static Log |
LOG |
static int |
NUM_SLAVES_BASE |
protected static SecureRandom |
rand |
protected static RSGroupAdmin |
rsGroupAdmin |
protected static String |
tablePrefix |
protected static HBaseTestingUtility |
TEST_UTIL |
static long |
WAIT_TIMEOUT |
| Constructor and Description |
|---|
TestRSGroupsBase() |
| Modifier and Type | Method and Description |
|---|---|
protected RSGroupInfo |
addGroup(RSGroupAdmin gAdmin,
String groupName,
int serverCount) |
protected void |
deleteGroups() |
protected void |
deleteNamespaceIfNecessary() |
protected void |
deleteTableIfNecessary() |
int |
getNumServers() |
Map<TableName,List<String>> |
getTableRegionMap() |
Map<TableName,Map<ServerName,List<String>>> |
getTableServerRegionMap() |
void |
testBogusArgs() |
void |
testCreateAndDrop() |
void |
testCreateMultiRegion() |
void |
testFailRemoveGroup() |
void |
testGroupBalance() |
void |
testKillRS() |
void |
testMoveServers() |
void |
testRegionMove() |
void |
testSimpleRegionServerMove() |
void |
testTableMoveTruncateAndDrop() |
void |
testValidGroupNames() |
protected static final Log LOG
protected static final String groupPrefix
protected static final String tablePrefix
protected static final SecureRandom rand
protected static HBaseTestingUtility TEST_UTIL
protected static HBaseAdmin admin
protected static HBaseCluster cluster
protected static RSGroupAdmin rsGroupAdmin
public static final long WAIT_TIMEOUT
public static final int NUM_SLAVES_BASE
protected RSGroupInfo addGroup(RSGroupAdmin gAdmin, String groupName, int serverCount) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected void deleteTableIfNecessary()
throws IOException
IOExceptionprotected void deleteNamespaceIfNecessary()
throws IOException
IOExceptionprotected void deleteGroups()
throws IOException
IOExceptionpublic Map<TableName,List<String>> getTableRegionMap() throws IOException
IOExceptionpublic Map<TableName,Map<ServerName,List<String>>> getTableServerRegionMap() throws IOException
IOExceptionpublic void testCreateMultiRegion()
throws IOException
IOExceptionpublic void testSimpleRegionServerMove()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic int getNumServers()
throws IOException
IOExceptionpublic void testTableMoveTruncateAndDrop()
throws Exception
Exceptionpublic void testFailRemoveGroup()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testValidGroupNames()
throws IOException
IOException