voldemort.client.rebalance
Class RebalanceNodePlan

java.lang.Object
  extended by voldemort.client.rebalance.RebalanceNodePlan

public class RebalanceNodePlan
extends java.lang.Object

This class acts as a container for the rebalancing plans for one particular node ( either donor or stealer depending on flag ). Can be one of the following -

  • For a particular stealer node - partitions desired to be stolen from various donor nodes
  • For a particular donor node - partitions which need to be donated to various stealer nodes


    Constructor Summary
    RebalanceNodePlan(int nodeId, java.util.List<RebalancePartitionsInfo> rebalanceTaskList, boolean isNodeStealer)
               
     
    Method Summary
     int getNodeId()
               
     java.util.List<RebalancePartitionsInfo> getRebalanceTaskList()
               
     boolean isNodeStealer()
               
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    RebalanceNodePlan

    public RebalanceNodePlan(int nodeId,
                             java.util.List<RebalancePartitionsInfo> rebalanceTaskList,
                             boolean isNodeStealer)
    Method Detail

    isNodeStealer

    public boolean isNodeStealer()

    getNodeId

    public int getNodeId()

    getRebalanceTaskList

    public java.util.List<RebalancePartitionsInfo> getRebalanceTaskList()


    Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu