Package org.apache.hadoop.hbase.client
Class RegionReplicaTestHelper
java.lang.Object
org.apache.hadoop.hbase.client.RegionReplicaTestHelper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertReplicaDistributed(HBaseTestingUtil util, org.apache.hadoop.hbase.client.Table t) private static booleancontains(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(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName tableName, int replicaId) (package private) static org.apache.hadoop.hbase.ServerNamemoveRegion(HBaseTestingUtil util, org.apache.hadoop.hbase.HRegionLocation currentLoc) Return the new location.(package private) static voidtestLocator(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName tableName, RegionReplicaTestHelper.Locator locator) (package private) static voidwaitUntilAllMetaReplicasAreReady(HBaseTestingUtil util, org.apache.hadoop.hbase.client.ConnectionRegistry registry)
-
Constructor Details
-
RegionReplicaTestHelper
private RegionReplicaTestHelper()
-
-
Method Details
-
waitUntilAllMetaReplicasAreReady
static void waitUntilAllMetaReplicasAreReady(HBaseTestingUtil util, org.apache.hadoop.hbase.client.ConnectionRegistry registry) throws IOException - Throws:
IOException
-
getRSCarryingReplica
static Optional<org.apache.hadoop.hbase.ServerName> getRSCarryingReplica(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName tableName, int replicaId) -
moveRegion
static org.apache.hadoop.hbase.ServerName moveRegion(HBaseTestingUtil util, org.apache.hadoop.hbase.HRegionLocation currentLoc) throws Exception Return the new location.- Throws:
Exception
-
testLocator
static void testLocator(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName tableName, RegionReplicaTestHelper.Locator locator) throws Exception - Throws:
Exception
-
assertReplicaDistributed
public static void assertReplicaDistributed(HBaseTestingUtil util, org.apache.hadoop.hbase.client.Table t) throws IOException - Throws:
IOException
-
contains
-