Skip to content

Instantly share code, notes, and snippets.

@rsumbaly
Created September 9, 2010 02:03
Show Gist options
  • Save rsumbaly/571232 to your computer and use it in GitHub Desktop.
Save rsumbaly/571232 to your computer and use it in GitHub Desktop.
currentCluster = ServerTestUtils.getLocalCluster(3, new int[][] { { 0, 1, 2, 3 },
{ 4, 5, 6 }, { 7, 8, 9 } });
targetCluster = ServerTestUtils.getLocalCluster(4, new int[][] { { 0, 4 }, { 1, 3, 5 },
{ 7, 8, 9 }, { 2, 6 } });
RebalanceClusterPlan rebalancePlan = new RebalanceClusterPlan(currentCluster,
targetCluster,
storeDefList,
new HashMap<String, Long>(),
true);
System.out.println("REBALANCE PLAN = " + rebalancePlan);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment