|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.client.protocol.admin.AdminClient.RebalancingOperations
public class AdminClient.RebalancingOperations
Encapsulates all operations concerning cluster expansion
| Constructor Summary | |
|---|---|
AdminClient.RebalancingOperations()
|
|
| Method Summary | |
|---|---|
void |
deleteStoreRebalanceState(int donorNodeId,
int stealerNodeId,
java.lang.String storeName)
Delete the rebalancing metadata related to the store on the stealer node |
Versioned<RebalancerState> |
getRemoteRebalancerState(int nodeId)
Return the remote rebalancer state for remote node |
Versioned<MetadataStore.VoldemortState> |
getRemoteServerState(int nodeId)
Retrieve the server MetadataStore.VoldemortState from a
remote node. |
int |
rebalanceNode(java.util.List<RebalancePartitionsInfo> stealInfos)
Rebalance a stealer-donor node pair for a set of stores. |
int |
rebalanceNode(RebalancePartitionsInfo stealInfo)
Rebalance a stealer-donor node pair for a set of stores. |
void |
rebalanceStateChange(Cluster existingCluster,
Cluster transitionCluster,
java.util.List<RebalancePartitionsInfo> rebalancePartitionPlanList,
boolean swapRO,
boolean changeClusterMetadata,
boolean changeRebalanceState,
boolean rollback,
boolean failEarly)
Used in rebalancing to indicate change in states. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdminClient.RebalancingOperations()
| Method Detail |
|---|
public int rebalanceNode(java.util.List<RebalancePartitionsInfo> stealInfos)
stealInfos - List of partition steal information
public int rebalanceNode(RebalancePartitionsInfo stealInfo)
stealInfo - Partition steal information
public void deleteStoreRebalanceState(int donorNodeId,
int stealerNodeId,
java.lang.String storeName)
donorNodeId - The donor node idstealerNodeId - The stealer node idstoreName - The name of the storepublic Versioned<MetadataStore.VoldemortState> getRemoteServerState(int nodeId)
MetadataStore.VoldemortState from a
remote node.
nodeId - The node from which we want to retrieve the state
public Versioned<RebalancerState> getRemoteRebalancerState(int nodeId)
nodeId - Node id
public void rebalanceStateChange(Cluster existingCluster,
Cluster transitionCluster,
java.util.List<RebalancePartitionsInfo> rebalancePartitionPlanList,
boolean swapRO,
boolean changeClusterMetadata,
boolean changeRebalanceState,
boolean rollback,
boolean failEarly)
| swapRO | changeClusterMetadata | changeRebalanceState | Order | | f | t | t | cluster -> rebalance | | f | f | t | rebalance | | t | t | f | cluster -> swap | | t | t | t | cluster -> swap -> rebalance |Similarly for rollback:
| swapRO | changeClusterMetadata | changeRebalanceState | Order | | f | t | t | remove from rebalance -> cluster | | f | f | t | remove from rebalance | | t | t | f | cluster -> swap | | t | t | t | remove from rebalance -> cluster -> swap |
existingCluster - Current clustertransitionCluster - Transition clusterrebalancePartitionPlanList - The list of rebalance partition
info plansswapRO - Boolean indicating if we need to swap RO storeschangeClusterMetadata - Boolean indicating if we need to change
cluster metadatachangeRebalanceState - Boolean indicating if we need to change
rebalancing staterollback - Do we want to do a rollback step in case of failures?failEarly - Do we want to fail early while doing state change?
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||