Class AssignmentTestingUtil
java.lang.Object
org.apache.hadoop.hbase.master.assignment.AssignmentTestingUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcrashRs(HBaseTestingUtil util, org.apache.hadoop.hbase.ServerName serverName, boolean kill) static org.apache.hadoop.hbase.ServerNamecrashRsWithRegion(HBaseTestingUtil util, org.apache.hadoop.hbase.client.RegionInfo hri, boolean kill) private static org.apache.hadoop.hbase.master.HMastergetMaster(HBaseTestingUtil util) static Set<org.apache.hadoop.hbase.client.RegionInfo>static org.apache.hadoop.hbase.ServerNamegetServerHoldingRegion(HBaseTestingUtil util, org.apache.hadoop.hbase.client.RegionInfo hri) static voidinsertData(HBaseTestingUtil UTIL, org.apache.hadoop.hbase.TableName tableName, int rowCount, int startRowNum, boolean flushOnce, String... cfs) static voidinsertData(HBaseTestingUtil UTIL, org.apache.hadoop.hbase.TableName tableName, int rowCount, int startRowNum, String... cfs) static booleanisServerHoldingMeta(HBaseTestingUtil util, org.apache.hadoop.hbase.ServerName serverName) static voidkillRs(HBaseTestingUtil util, org.apache.hadoop.hbase.ServerName serverName) static voidstopRs(HBaseTestingUtil util, org.apache.hadoop.hbase.ServerName serverName) static booleanwaitForAssignment(org.apache.hadoop.hbase.master.assignment.AssignmentManager am, org.apache.hadoop.hbase.client.RegionInfo regionInfo) static voidwaitForRegionToBeInTransition(HBaseTestingUtil util, org.apache.hadoop.hbase.client.RegionInfo hri) static voidwaitForRsToBeDead(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
-