voldemort.client.rebalance
Class OrderedClusterTransition

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

public class OrderedClusterTransition
extends java.lang.Object

Ordered representation of a cluster transition that guarantees that primary partition movements will take place before replicas. Why? So that redirections for primary partitions can get over faster


Constructor Summary
OrderedClusterTransition(Cluster currentCluster, Cluster targetCluster, java.util.List<StoreDefinition> storeDefs, RebalanceClusterPlan rebalanceClusterPlan)
           
 
Method Summary
 Cluster getCurrentCluster()
           
 int getId()
           
 java.util.List<RebalancePartitionsInfo> getOrderedRebalancePartitionsInfoList()
           
 java.util.List<StoreDefinition> getStoreDefs()
           
 Cluster getTargetCluster()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrderedClusterTransition

public OrderedClusterTransition(Cluster currentCluster,
                                Cluster targetCluster,
                                java.util.List<StoreDefinition> storeDefs,
                                RebalanceClusterPlan rebalanceClusterPlan)
Method Detail

getStoreDefs

public java.util.List<StoreDefinition> getStoreDefs()

getId

public int getId()

getTargetCluster

public Cluster getTargetCluster()

getCurrentCluster

public Cluster getCurrentCluster()

getOrderedRebalancePartitionsInfoList

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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