public abstract class TestRSGroupsBase extends Object
Modifier and Type | Field and Description |
---|---|
protected static HBaseAdmin |
admin |
protected static HBaseCluster |
cluster |
protected static Configuration |
conf |
static int |
DEFAULT_NUM_SLAVES_BASE |
static long |
DEFAULT_WAIT_TIMEOUT |
protected static String |
groupPrefix |
protected static Log |
LOG |
static String |
NUM_SLAVES_BASE_KEY |
protected static SecureRandom |
rand |
protected static RSGroupAdmin |
rsGroupAdmin |
protected static String |
tablePrefix |
protected static HBaseTestingUtility |
TEST_UTIL |
static String |
WAIT_TIMEOUT_KEY |
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 |
testMultiTableMove() |
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
protected static Configuration conf
public static final String WAIT_TIMEOUT_KEY
public static final long DEFAULT_WAIT_TIMEOUT
public static final String NUM_SLAVES_BASE_KEY
public static final int DEFAULT_NUM_SLAVES_BASE
protected RSGroupInfo addGroup(RSGroupAdmin gAdmin, String groupName, int serverCount) throws IOException, InterruptedException
IOException
InterruptedException
protected void deleteTableIfNecessary() throws IOException
IOException
protected void deleteNamespaceIfNecessary() throws IOException
IOException
protected void deleteGroups() throws IOException
IOException
public Map<TableName,List<String>> getTableRegionMap() throws IOException
IOException
public Map<TableName,Map<ServerName,List<String>>> getTableServerRegionMap() throws IOException
IOException
public void testCreateMultiRegion() throws IOException
IOException
public void testSimpleRegionServerMove() throws IOException, InterruptedException
IOException
InterruptedException
public int getNumServers() throws IOException
IOException
public void testTableMoveTruncateAndDrop() throws Exception
Exception
public void testFailRemoveGroup() throws IOException, InterruptedException
IOException
InterruptedException
public void testValidGroupNames() throws IOException
IOException