@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(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> |
getMetaRegions(HBaseTestingUtil util) |
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) |
private static final org.slf4j.Logger LOG
private AssignmentTestingUtil()
public static void waitForRegionToBeInTransition(HBaseTestingUtil util, org.apache.hadoop.hbase.client.RegionInfo hri) throws Exception
Exception
public static void waitForRsToBeDead(HBaseTestingUtil util, org.apache.hadoop.hbase.ServerName serverName) throws Exception
Exception
public static void stopRs(HBaseTestingUtil util, org.apache.hadoop.hbase.ServerName serverName) throws Exception
Exception
public static void killRs(HBaseTestingUtil util, org.apache.hadoop.hbase.ServerName serverName) throws Exception
Exception
public static void crashRs(HBaseTestingUtil util, org.apache.hadoop.hbase.ServerName serverName, boolean kill) throws Exception
Exception
public static org.apache.hadoop.hbase.ServerName crashRsWithRegion(HBaseTestingUtil util, org.apache.hadoop.hbase.client.RegionInfo hri, boolean kill) throws Exception
Exception
public static org.apache.hadoop.hbase.ServerName getServerHoldingRegion(HBaseTestingUtil util, org.apache.hadoop.hbase.client.RegionInfo hri) throws Exception
Exception
public static boolean isServerHoldingMeta(HBaseTestingUtil util, org.apache.hadoop.hbase.ServerName serverName) throws Exception
Exception
public static Set<org.apache.hadoop.hbase.client.RegionInfo> getMetaRegions(HBaseTestingUtil util)
private static org.apache.hadoop.hbase.master.HMaster getMaster(HBaseTestingUtil 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(HBaseTestingUtil UTIL, org.apache.hadoop.hbase.TableName tableName, int rowCount, int startRowNum, String... cfs) throws IOException
IOException
public static void insertData(HBaseTestingUtil 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.