Package org.apache.hadoop.hbase.client
Class RegionReplicaTestHelper
java.lang.Object
org.apache.hadoop.hbase.client.RegionReplicaTestHelper
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static interface
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertReplicaDistributed
(HBaseTestingUtil 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
(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName tableName, int replicaId) (package private) static org.apache.hadoop.hbase.ServerName
moveRegion
(HBaseTestingUtil util, org.apache.hadoop.hbase.HRegionLocation currentLoc) Return the new location.(package private) static void
testLocator
(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName tableName, RegionReplicaTestHelper.Locator locator) (package private) static void
waitUntilAllMetaReplicasAreReady
(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
-