voldemort.client.protocol.admin
Class AdminClient.ReplicationOperations

java.lang.Object
  extended by voldemort.client.protocol.admin.AdminClient.ReplicationOperations
Enclosing class:
AdminClient

public class AdminClient.ReplicationOperations
extends java.lang.Object


Constructor Summary
AdminClient.ReplicationOperations()
           
 
Method Summary
 java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> getReplicationMapping(int restoringNode, Cluster cluster, StoreDefinition storeDef)
          For a particular node, finds out all the [replica, partition] tuples it needs to steal in order to be brought back to normal state
 java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> getReplicationMapping(int restoringNode, Cluster cluster, StoreDefinition storeDef, int zoneId)
          For a particular node, finds out all the [node, partition] it needs to steal in order to be brought back to normal state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminClient.ReplicationOperations

public AdminClient.ReplicationOperations()
Method Detail

getReplicationMapping

public java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> getReplicationMapping(int restoringNode,
                                                                                                Cluster cluster,
                                                                                                StoreDefinition storeDef)
For a particular node, finds out all the [replica, partition] tuples it needs to steal in order to be brought back to normal state

Parameters:
restoringNode - The id of the node which needs to be restored
cluster - The cluster definition
storeDef - The store definition to use
Returns:
Map of node id to corresponding partition list

getReplicationMapping

public java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> getReplicationMapping(int restoringNode,
                                                                                                Cluster cluster,
                                                                                                StoreDefinition storeDef,
                                                                                                int zoneId)
For a particular node, finds out all the [node, partition] it needs to steal in order to be brought back to normal state

Parameters:
restoringNode - The id of the node which needs to be restored
cluster - The cluster definition
storeDef - The store definition to use
zoneId - zone from which nodes are chosen, -1 means no zone preference
Returns:
Map of node id to corresponding partition list


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