Class AssignmentTestingUtil
java.lang.Object
org.apache.hadoop.hbase.master.assignment.AssignmentTestingUtil
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
crashRs
(HBaseTestingUtil util, org.apache.hadoop.hbase.ServerName serverName, boolean kill) static org.apache.hadoop.hbase.ServerName
crashRsWithRegion
(HBaseTestingUtil util, org.apache.hadoop.hbase.client.RegionInfo hri, boolean kill) private static org.apache.hadoop.hbase.master.HMaster
getMaster
(HBaseTestingUtil util) static Set<org.apache.hadoop.hbase.client.RegionInfo>
static org.apache.hadoop.hbase.ServerName
getServerHoldingRegion
(HBaseTestingUtil util, org.apache.hadoop.hbase.client.RegionInfo hri) static void
insertData
(HBaseTestingUtil UTIL, org.apache.hadoop.hbase.TableName tableName, int rowCount, int startRowNum, boolean flushOnce, String... cfs) static void
insertData
(HBaseTestingUtil UTIL, org.apache.hadoop.hbase.TableName tableName, int rowCount, int startRowNum, String... cfs) static boolean
isServerHoldingMeta
(HBaseTestingUtil util, org.apache.hadoop.hbase.ServerName serverName) static void
killRs
(HBaseTestingUtil util, org.apache.hadoop.hbase.ServerName serverName) static void
stopRs
(HBaseTestingUtil util, org.apache.hadoop.hbase.ServerName serverName) static boolean
waitForAssignment
(org.apache.hadoop.hbase.master.assignment.AssignmentManager am, org.apache.hadoop.hbase.client.RegionInfo regionInfo) static void
waitForRegionToBeInTransition
(HBaseTestingUtil util, org.apache.hadoop.hbase.client.RegionInfo hri) static void
waitForRsToBeDead
(HBaseTestingUtil util, org.apache.hadoop.hbase.ServerName serverName)
-
Field Details
-
LOG
-
-
Constructor Details
-
AssignmentTestingUtil
private AssignmentTestingUtil()
-
-
Method Details
-
waitForRegionToBeInTransition
public static void waitForRegionToBeInTransition(HBaseTestingUtil util, org.apache.hadoop.hbase.client.RegionInfo hri) throws Exception - Throws:
Exception
-
waitForRsToBeDead
public static void waitForRsToBeDead(HBaseTestingUtil util, org.apache.hadoop.hbase.ServerName serverName) throws Exception - Throws:
Exception
-
stopRs
public static void stopRs(HBaseTestingUtil util, org.apache.hadoop.hbase.ServerName serverName) throws Exception - Throws:
Exception
-
killRs
public static void killRs(HBaseTestingUtil util, org.apache.hadoop.hbase.ServerName serverName) throws Exception - Throws:
Exception
-
crashRs
public static void crashRs(HBaseTestingUtil util, org.apache.hadoop.hbase.ServerName serverName, boolean kill) throws Exception - Throws:
Exception
-
crashRsWithRegion
public static org.apache.hadoop.hbase.ServerName crashRsWithRegion(HBaseTestingUtil util, org.apache.hadoop.hbase.client.RegionInfo hri, boolean kill) throws Exception - Throws:
Exception
-
getServerHoldingRegion
public static org.apache.hadoop.hbase.ServerName getServerHoldingRegion(HBaseTestingUtil util, org.apache.hadoop.hbase.client.RegionInfo hri) throws Exception - Throws:
Exception
-
isServerHoldingMeta
public static boolean isServerHoldingMeta(HBaseTestingUtil util, org.apache.hadoop.hbase.ServerName serverName) throws Exception - Throws:
Exception
-
getMetaRegions
-
getMaster
-
waitForAssignment
public static boolean waitForAssignment(org.apache.hadoop.hbase.master.assignment.AssignmentManager am, org.apache.hadoop.hbase.client.RegionInfo regionInfo) throws IOException - Throws:
IOException
-
insertData
public static void insertData(HBaseTestingUtil UTIL, org.apache.hadoop.hbase.TableName tableName, int rowCount, int startRowNum, String... cfs) throws IOException - Throws:
IOException
-
insertData
public static void insertData(HBaseTestingUtil UTIL, org.apache.hadoop.hbase.TableName tableName, int rowCount, int startRowNum, boolean flushOnce, String... cfs) throws IOException - Throws:
IOException
-