voldemort.client.protocol.admin
Class AdminClient.RestoreOperations

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

public class AdminClient.RestoreOperations
extends java.lang.Object

Encapsulates all operations to restore data in the cluster


Constructor Summary
AdminClient.RestoreOperations()
           
 
Method Summary
 void mirrorData(int nodeId, int nodeIdToMirrorFrom, java.lang.String urlToMirrorFrom, java.util.List<java.lang.String> stores)
          Mirror data from another voldemort server
 void restoreDataFromReplications(int nodeId, int parallelTransfers)
          RestoreData from copies on other machines for the given nodeId
 void restoreDataFromReplications(int nodeId, int parallelTransfers, int zoneId)
          RestoreData from copies on other machines for the given nodeId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminClient.RestoreOperations

public AdminClient.RestoreOperations()
Method Detail

restoreDataFromReplications

public void restoreDataFromReplications(int nodeId,
                                        int parallelTransfers)
RestoreData from copies on other machines for the given nodeId

Recovery mechanism to recover and restore data actively from replicated copies in the cluster.

Parameters:
nodeId - Id of the node to restoreData
parallelTransfers - number of transfers
Throws:
java.lang.InterruptedException

restoreDataFromReplications

public void restoreDataFromReplications(int nodeId,
                                        int parallelTransfers,
                                        int zoneId)
RestoreData from copies on other machines for the given nodeId

Recovery mechanism to recover and restore data actively from replicated copies in the cluster.

Parameters:
nodeId - Id of the node to restoreData
parallelTransfers - number of transfers
zoneId - zone from which the nodes are chosen from, -1 means no zone preference
Throws:
java.lang.InterruptedException

mirrorData

public void mirrorData(int nodeId,
                       int nodeIdToMirrorFrom,
                       java.lang.String urlToMirrorFrom,
                       java.util.List<java.lang.String> stores)
Mirror data from another voldemort server

Parameters:
nodeId - node in the current cluster to mirror to
nodeIdToMirrorFrom - node from which to mirror data
urlToMirrorFrom - cluster bootstrap url to mirror from
stores - set of stores to be mirrored


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