@InterfaceAudience.Private @InterfaceStability.Evolving public final class AssignmentTestingUtil extends Object
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
Modifier | Constructor and Description |
---|---|
private |
AssignmentTestingUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
crashRs(HBaseTestingUtility util,
org.apache.hadoop.hbase.ServerName serverName,
boolean kill) |
static org.apache.hadoop.hbase.ServerName |
crashRsWithRegion(HBaseTestingUtility util,
org.apache.hadoop.hbase.client.RegionInfo hri,
boolean kill) |
private static org.apache.hadoop.hbase.master.HMaster |
getMaster(HBaseTestingUtility util) |
static Set<org.apache.hadoop.hbase.client.RegionInfo> |
getMetaRegions(HBaseTestingUtility util) |
static org.apache.hadoop.hbase.ServerName |
getServerHoldingRegion(HBaseTestingUtility util,
org.apache.hadoop.hbase.client.RegionInfo hri) |
static void |
insertData(HBaseTestingUtility UTIL,
org.apache.hadoop.hbase.TableName tableName,
int rowCount,
int startRowNum,
boolean flushOnce,
String... cfs) |
static void |
insertData(HBaseTestingUtility UTIL,
org.apache.hadoop.hbase.TableName tableName,
int rowCount,
int startRowNum,
String... cfs) |
static boolean |
isServerHoldingMeta(HBaseTestingUtility util,
org.apache.hadoop.hbase.ServerName serverName) |
static void |
killRs(HBaseTestingUtility util,
org.apache.hadoop.hbase.ServerName serverName) |
static void |
stopRs(HBaseTestingUtility 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(HBaseTestingUtility util,
org.apache.hadoop.hbase.client.RegionInfo hri) |
static void |
waitForRsToBeDead(HBaseTestingUtility util,
org.apache.hadoop.hbase.ServerName serverName) |
private static final org.slf4j.Logger LOG
private AssignmentTestingUtil()
public static void waitForRegionToBeInTransition(HBaseTestingUtility util, org.apache.hadoop.hbase.client.RegionInfo hri) throws Exception
Exception
public static void waitForRsToBeDead(HBaseTestingUtility util, org.apache.hadoop.hbase.ServerName serverName) throws Exception
Exception
public static void stopRs(HBaseTestingUtility util, org.apache.hadoop.hbase.ServerName serverName) throws Exception
Exception
public static void killRs(HBaseTestingUtility util, org.apache.hadoop.hbase.ServerName serverName) throws Exception
Exception
public static void crashRs(HBaseTestingUtility util, org.apache.hadoop.hbase.ServerName serverName, boolean kill) throws Exception
Exception
public static org.apache.hadoop.hbase.ServerName crashRsWithRegion(HBaseTestingUtility util, org.apache.hadoop.hbase.client.RegionInfo hri, boolean kill) throws Exception
Exception
public static org.apache.hadoop.hbase.ServerName getServerHoldingRegion(HBaseTestingUtility util, org.apache.hadoop.hbase.client.RegionInfo hri) throws Exception
Exception
public static boolean isServerHoldingMeta(HBaseTestingUtility util, org.apache.hadoop.hbase.ServerName serverName) throws Exception
Exception
public static Set<org.apache.hadoop.hbase.client.RegionInfo> getMetaRegions(HBaseTestingUtility util)
private static org.apache.hadoop.hbase.master.HMaster getMaster(HBaseTestingUtility util)
public static boolean waitForAssignment(org.apache.hadoop.hbase.master.assignment.AssignmentManager am, org.apache.hadoop.hbase.client.RegionInfo regionInfo) throws IOException
IOException
public static void insertData(HBaseTestingUtility UTIL, org.apache.hadoop.hbase.TableName tableName, int rowCount, int startRowNum, String... cfs) throws IOException
IOException
public static void insertData(HBaseTestingUtility UTIL, org.apache.hadoop.hbase.TableName tableName, int rowCount, int startRowNum, boolean flushOnce, String... cfs) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.