Examples of toDescriptiveString()


Examples of org.apache.hadoop.hbase.master.AssignmentManager.RegionState.toDescriptiveString()

    NavigableMap<String, RegionState> regionsInTransition =
      master.getAssignmentManager().getRegionsInTransition();
    for (Map.Entry<String, RegionState> e : regionsInTransition.entrySet()) {
      String rid = e.getKey();
      RegionState rs = e.getValue();
      out.println("Region " + rid + ": " + rs.toDescriptiveString());
    }
  }

  private void dumpServers(HMaster master, PrintWriter out) {
    Map<ServerName, HServerLoad> servers =
View Full Code Here

Examples of org.apache.hadoop.hbase.master.RegionState.toDescriptiveString()

        HRegionInfo.getStartKeyForDisplay(h, conf));

    RegionState state = new RegionState(h, RegionState.State.OPEN);
    String descriptiveNameForDisplay =
        HRegionInfo.getDescriptiveNameFromRegionStateForDisplay(state, conf);
    checkDescriptiveNameEquality(descriptiveNameForDisplay,state.toDescriptiveString(), startKey);

    conf.setBoolean("hbase.display.keys", true);
    Assert.assertArrayEquals(endKey, HRegionInfo.getEndKeyForDisplay(h, conf));
    Assert.assertArrayEquals(startKey, HRegionInfo.getStartKeyForDisplay(h, conf));
    Assert.assertEquals(state.toDescriptiveString(),
View Full Code Here

Examples of org.apache.hadoop.hbase.master.RegionState.toDescriptiveString()

    checkDescriptiveNameEquality(descriptiveNameForDisplay,state.toDescriptiveString(), startKey);

    conf.setBoolean("hbase.display.keys", true);
    Assert.assertArrayEquals(endKey, HRegionInfo.getEndKeyForDisplay(h, conf));
    Assert.assertArrayEquals(startKey, HRegionInfo.getStartKeyForDisplay(h, conf));
    Assert.assertEquals(state.toDescriptiveString(),
        HRegionInfo.getDescriptiveNameFromRegionStateForDisplay(state, conf));
  }

  private void checkDescriptiveNameEquality(String descriptiveNameForDisplay, String origDesc,
      byte[] startKey) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.