public final class RegionReplicaTestHelper extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
RegionReplicaTestHelper.Locator |
Modifier | Constructor and Description |
---|---|
private |
RegionReplicaTestHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
assertReplicaDistributed(HBaseTestingUtility util,
org.apache.hadoop.hbase.client.Table t) |
private static boolean |
contains(List<org.apache.hadoop.hbase.client.RegionInfo> regionInfos,
org.apache.hadoop.hbase.client.RegionInfo regionInfo) |
(package private) static Optional<org.apache.hadoop.hbase.ServerName> |
getRSCarryingReplica(HBaseTestingUtility util,
org.apache.hadoop.hbase.TableName tableName,
int replicaId) |
(package private) static org.apache.hadoop.hbase.ServerName |
moveRegion(HBaseTestingUtility util,
org.apache.hadoop.hbase.HRegionLocation currentLoc)
Return the new location.
|
(package private) static void |
testLocator(HBaseTestingUtility util,
org.apache.hadoop.hbase.TableName tableName,
RegionReplicaTestHelper.Locator locator) |
(package private) static void |
waitUntilAllMetaReplicasAreReady(HBaseTestingUtility util,
org.apache.hadoop.hbase.client.ConnectionRegistry registry) |
private RegionReplicaTestHelper()
static void waitUntilAllMetaReplicasAreReady(HBaseTestingUtility util, org.apache.hadoop.hbase.client.ConnectionRegistry registry) throws IOException
IOException
static Optional<org.apache.hadoop.hbase.ServerName> getRSCarryingReplica(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, int replicaId)
static org.apache.hadoop.hbase.ServerName moveRegion(HBaseTestingUtility util, org.apache.hadoop.hbase.HRegionLocation currentLoc) throws Exception
Exception
static void testLocator(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, RegionReplicaTestHelper.Locator locator) throws Exception
Exception
public static void assertReplicaDistributed(HBaseTestingUtility util, org.apache.hadoop.hbase.client.Table t) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.