public class SolrSnapshotManager extends Object
Constructor and Description |
---|
SolrSnapshotManager() |
Modifier and Type | Method and Description |
---|---|
static void |
deleteIndexFiles(Directory dir,
Collection<SolrSnapshotMetaDataManager.SnapshotMetaData> snapshots,
long gen)
This method deletes index files of the IndexCommit for the specified generation number.
|
static void |
deleteNonSnapshotIndexFiles(Directory dir,
Collection<SolrSnapshotMetaDataManager.SnapshotMetaData> snapshots)
This method deletes all files not corresponding to a configured snapshot in the specified index directory.
|
public static void deleteIndexFiles(Directory dir, Collection<SolrSnapshotMetaDataManager.SnapshotMetaData> snapshots, long gen) throws IOException
dir
- The index directory storing the snapshot.gen
- The generation number for the IndexCommitIOException
- in case of I/O errors.public static void deleteNonSnapshotIndexFiles(Directory dir, Collection<SolrSnapshotMetaDataManager.SnapshotMetaData> snapshots) throws IOException
dir
- The index directory to search for.IOException
- in case of I/O errors.Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.