voldemort.client.protocol.admin
Class AdminClient.ReplicationOperations
java.lang.Object
voldemort.client.protocol.admin.AdminClient.ReplicationOperations
- Enclosing class:
- AdminClient
public class AdminClient.ReplicationOperations
- extends java.lang.Object
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 |
AdminClient.ReplicationOperations
public AdminClient.ReplicationOperations()
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 restoredcluster
- The cluster definitionstoreDef
- 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 restoredcluster
- The cluster definitionstoreDef
- The store definition to usezoneId
- 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