|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.client.protocol.admin.AdminClient.StoreMaintenanceOperations
public class AdminClient.StoreMaintenanceOperations
Encapsulates all operations that aid in performing maintenance on the actual store's data
| Constructor Summary | |
|---|---|
AdminClient.StoreMaintenanceOperations()
|
|
| Method Summary | |
|---|---|
long |
deletePartitions(int nodeId,
java.lang.String storeName,
java.util.HashMap<java.lang.Integer,java.util.List<java.lang.Integer>> replicaToPartitionList,
Cluster initialCluster,
VoldemortFilter filter)
Delete all entries belonging to all the partitions passed as a map of replica_type to partition list. |
long |
deletePartitions(int nodeId,
java.lang.String storeName,
java.util.List<java.lang.Integer> partitionList,
VoldemortFilter filter)
Delete all entries belonging to a list of partitions |
int |
migratePartitions(int donorNodeId,
int stealerNodeId,
java.lang.String storeName,
java.util.HashMap<java.lang.Integer,java.util.List<java.lang.Integer>> replicaToPartitionList,
VoldemortFilter filter,
Cluster initialCluster,
boolean optimize)
Migrate keys/values belonging to a map of replica type to partition list from donor node to stealer node. |
int |
migratePartitions(int donorNodeId,
int stealerNodeId,
java.lang.String storeName,
java.util.List<java.lang.Integer> stealPartitionList,
VoldemortFilter filter)
Migrate keys/values belonging to stealPartitionList ( can be primary or replica ) from donor node to stealer node. |
void |
nativeBackup(int nodeId,
java.lang.String storeName,
java.lang.String destinationDirPath,
int timeOut,
boolean verify,
boolean isIncremental)
Native backup a store |
void |
repairJob(int nodeId)
Repair the stores on a rebalanced node 'nodeId' |
void |
reserveMemory(int nodeId,
java.util.List<java.lang.String> stores,
long sizeInMB)
Reserve memory for the stores |
void |
truncate(int nodeId,
java.lang.String storeName)
Delete the store completely (Deletes all data) from the remote node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdminClient.StoreMaintenanceOperations()
| Method Detail |
|---|
public int migratePartitions(int donorNodeId,
int stealerNodeId,
java.lang.String storeName,
java.util.List<java.lang.Integer> stealPartitionList,
VoldemortFilter filter)
See
AdminClient#migratePartitions(int, int, String, HashMap, VoldemortFilter, Cluster, boolean)
for more details.
donorNodeId - Node from which the partitions are to be
streamed.stealerNodeId - Node to which the partitions are to be
streamed.storeName - Name of the store to stream.stealPartitionList - List of partitions to stream.filter - Custom filter implementation to filter out entries
which should not be deleted.
AsyncOperation
created on stealerNodeId which is performing the operation.
public int migratePartitions(int donorNodeId,
int stealerNodeId,
java.lang.String storeName,
java.util.HashMap<java.lang.Integer,java.util.List<java.lang.Integer>> replicaToPartitionList,
VoldemortFilter filter,
Cluster initialCluster,
boolean optimize)
This is a background operation (see
AsyncOperation that runs on
the stealer node where updates are performed.
donorNodeId - Node from which the partitions are to be
streamed.stealerNodeId - Node to which the partitions are to be
streamed.storeName - Name of the store to stream.replicaToPartitionList - Mapping from replica type to partition
to be stolenfilter - Voldemort post-filterinitialCluster - The cluster metadata to use for making the
decision if the key belongs to these partitions. If not
specified, falls back to the metadata stored on the boxoptimize - We can run an optimization at this level where-in we
try avoid copying of data which already exists ( in the form
of a replica ). We do need to disable this when we're trying
to recover a node which was completely damaged ( restore from
replica ).
AsyncOperation
created on stealer node which is performing the operation.
public void truncate(int nodeId,
java.lang.String storeName)
nodeId - The node id on which the store is presentstoreName - The name of the store
public long deletePartitions(int nodeId,
java.lang.String storeName,
java.util.List<java.lang.Integer> partitionList,
VoldemortFilter filter)
nodeId - Node on which the entries to be deletedstoreName - Name of the store holding the entriespartitionList - List of partitions to delete.filter - Custom filter implementation to filter out entries
which should not be deleted.
public long deletePartitions(int nodeId,
java.lang.String storeName,
java.util.HashMap<java.lang.Integer,java.util.List<java.lang.Integer>> replicaToPartitionList,
Cluster initialCluster,
VoldemortFilter filter)
nodeId - Node on which the entries to be deletedstoreName - Name of the store holding the entriesreplicaToPartitionList - Map of replica type to partition listfilter - Custom filter implementation to filter out entries
which should not be deleted.
public void repairJob(int nodeId)
nodeId - The id of the node on which to do the repair
public void nativeBackup(int nodeId,
java.lang.String storeName,
java.lang.String destinationDirPath,
int timeOut,
boolean verify,
boolean isIncremental)
nodeId - The node id to backupstoreName - The name of the store to backupdestinationDirPath - The destination pathminutes - to wait for operation to completeverify - should the file checksums be verifiedisIncremental - is the backup incremental
public void reserveMemory(int nodeId,
java.util.List<java.lang.String> stores,
long sizeInMB)
nodeId - The node id to reserve, -1 for entire clusterstores - list of stores for which to reservesizeInMB - size of reservation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||