public class SolrSnapshotsTool extends Object implements Closeable
Constructor and Description |
---|
SolrSnapshotsTool(String solrZkEnsemble) |
Modifier and Type | Method and Description |
---|---|
void |
backupCollectionMetaData(String collectionName,
String snapshotName,
String backupLoc) |
void |
buildCopyListings(String collectionName,
String snapshotName,
String localFsPath,
Optional<String> pathPrefix) |
void |
close() |
void |
createSnapshot(String collectionName,
String snapshotName) |
void |
deleteSnapshot(String collectionName,
String snapshotName) |
void |
describeSnapshot(String collectionName,
String snapshotName) |
void |
exportSnapshot(String collectionName,
String snapshotName,
String destPath,
Optional<String> backupRepo,
Optional<String> asyncReqId) |
Map<String,List<String>> |
getIndexFilesPathForSnapshot(String collectionName,
String snapshotName,
Optional<String> pathPrefix) |
void |
listSnapshots(String collectionName) |
static void |
main(String[] args) |
void |
prepareForExport(String collectionName,
String snapshotName,
String localFsPath,
Optional<String> pathPrefix,
String destPath) |
public SolrSnapshotsTool(String solrZkEnsemble)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void listSnapshots(String collectionName)
public Map<String,List<String>> getIndexFilesPathForSnapshot(String collectionName, String snapshotName, Optional<String> pathPrefix) throws SolrServerException, IOException
SolrServerException
IOException
public void buildCopyListings(String collectionName, String snapshotName, String localFsPath, Optional<String> pathPrefix) throws SolrServerException, IOException
SolrServerException
IOException
public void backupCollectionMetaData(String collectionName, String snapshotName, String backupLoc) throws SolrServerException, IOException
SolrServerException
IOException
public void prepareForExport(String collectionName, String snapshotName, String localFsPath, Optional<String> pathPrefix, String destPath)
public void exportSnapshot(String collectionName, String snapshotName, String destPath, Optional<String> backupRepo, Optional<String> asyncReqId)
public static void main(String[] args) throws IOException
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.