|
||||||||||
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.List<java.lang.Integer> partitionIds,
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.List<java.lang.Integer> stealPartitionList,
VoldemortFilter filter)
Migrate keys/values belonging to stealPartitionList ( can be primary or replica ) from donor node to stealer node. |
int |
migratePartitions(int donorNodeId,
int stealerNodeId,
java.lang.String storeName,
java.util.List<java.lang.Integer> partitionIds,
VoldemortFilter filter,
Cluster initialCluster)
Migrate keys/values belonging to a list of partition ids 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 |
pruneJob(int nodeId,
java.util.List<java.lang.String> stores)
See VersionedPutPruneJob |
void |
pruneJob(int nodeId,
java.lang.String store)
See VersionedPutPruneJob |
void |
repairJob(int nodeId)
See RepairJob |
void |
slopPurgeJob(int destinationNodeId,
java.util.List<java.lang.Integer> nodeList,
int zoneId,
java.util.List<java.lang.String> storeNames)
|
void |
slopPurgeJob(java.util.List<java.lang.Integer> nodesToPurge,
int zoneToPurge,
java.util.List<java.lang.String> storesToPurge)
|
void |
truncate(int nodeId,
java.lang.String storeName)
Delete the store completely (Deletes all data) from the remote node. |
void |
truncate(java.util.List<java.lang.Integer> nodeIds,
java.lang.String storeName)
|
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
migratePartitions(int, int, String, List, VoldemortFilter, Cluster)
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.List<java.lang.Integer> partitionIds, VoldemortFilter filter, Cluster initialCluster)
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.partitionIds
- List of partition idsfilter
- 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 box
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 storepublic void truncate(java.util.List<java.lang.Integer> nodeIds, java.lang.String storeName)
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.List<java.lang.Integer> partitionIds, Cluster initialCluster, VoldemortFilter filter)
nodeId
- Node on which the entries to be deletedstoreName
- Name of the store holding the entriespartitionIds
- List of partition Idsfilter
- Custom filter implementation to filter out entries
which should not be deleted.
public void repairJob(int nodeId)
RepairJob
nodeId
- The id of the node on which to do the repairpublic void pruneJob(int nodeId, java.lang.String store)
VersionedPutPruneJob
nodeId
- server on which to prunestore
- store to prunepublic void pruneJob(int nodeId, java.util.List<java.lang.String> stores)
VersionedPutPruneJob
nodeId
- The id of the node on which to do the pruningstores
- the list of stores to prunepublic void slopPurgeJob(int destinationNodeId, java.util.List<java.lang.Integer> nodeList, int zoneId, java.util.List<java.lang.String> storeNames)
public void slopPurgeJob(java.util.List<java.lang.Integer> nodesToPurge, int zoneToPurge, java.util.List<java.lang.String> storesToPurge)
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 pathtimeOut
- minutes to wait for operation to completeverify
- should the file checksums be verifiedisIncremental
- is the backup incremental
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |