voldemort.client.rebalance
Class RebalanceController
java.lang.Object
voldemort.client.rebalance.RebalanceController
public class RebalanceController
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RebalanceController
public RebalanceController(java.lang.String bootstrapUrl,
RebalanceClientConfig rebalanceConfig)
RebalanceController
public RebalanceController(Cluster cluster,
RebalanceClientConfig config)
rebalance
public void rebalance(Cluster targetCluster)
- Grabs the latest cluster definition
rebalance(voldemort.cluster.Cluster, voldemort.cluster.Cluster)
- Parameters:
targetCluster - Target cluster metadata
rebalance
public void rebalance(Cluster currentCluster,
Cluster targetCluster)
- Grabs the store definition and calls
rebalance(voldemort.cluster.Cluster, voldemort.cluster.Cluster, java.util.List)
- Parameters:
currentCluster - Current cluster metadatatargetCluster - Target cluster metadata
rebalance
public void rebalance(Cluster currentCluster,
Cluster targetCluster,
java.util.List<StoreDefinition> storeDefs)
- Does basic verification of the metadata + server state. Finally starts
the rebalancing.
- Parameters:
currentCluster - The cluster currently used on each nodetargetCluster - The desired cluster after rebalancestoreDefs - Stores to rebalance
getAdminClient
public AdminClient getAdminClient()
stop
public void stop()
Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu