hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestAdmin2.java
/**
   * Do get of RegionInfo from Master using encoded region name.
   */
Do get of RegionInfo from Master using encoded region name.
Do get of RegionInfo from Master using encoded region name .
private void testGetWithRegionName(ServerName sn, RegionInfo inputRI,
      byte [] regionName) throws IOException {
    RegionInfo ri = ProtobufUtil.toRegionInfo(FutureUtils.get(
      TEST_UTIL.getAsyncConnection().getRegionServerAdmin(sn).getRegionInfo(
        ProtobufUtil.getGetRegionInfoRequest(regionName))).getRegionInfo());
    assertEquals(inputRI, ri);
  }
private void testGetWithRegionName ( ServerName sn , RegionInfo inputRI , byte [ ] regionName ) throws IOException { RegionInfo ri = ProtobufUtil . toRegionInfo ( FutureUtils . get ( TEST_UTIL . getAsyncConnection ( ) . getRegionServerAdmin ( sn ) . getRegionInfo ( ProtobufUtil . getGetRegionInfoRequest ( regionName ) ) ) . getRegionInfo ( ) ) ; assertEquals ( inputRI , ri ) ; }
Do get of RegionInfo from Master using encoded region name.
Do get of RegionInfo from Master using encoded region name .