Package org.apache.solr.hdfs.snapshots
Class SolrSnapshotsTool
- java.lang.Object
-
- org.apache.solr.hdfs.snapshots.SolrSnapshotsTool
-
-
Constructor Summary
Constructors Constructor Description SolrSnapshotsTool(String solrZkEnsemble)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidbackupCollectionMetaData(String collectionName, String snapshotName, String backupLoc)voidbuildCopyListings(String collectionName, String snapshotName, String localFsPath, String pathPrefix)voidclose()voidcreateSnapshot(String collectionName, String snapshotName)Deprecated.use equivalent snapshot related tool inSnapshotCreateToolvoiddeleteSnapshot(String collectionName, String snapshotName)Deprecated.use equivalent snapshot related tool inSnapshotDeleteToolvoiddescribeSnapshot(String collectionName, String snapshotName)Deprecated.use equivalent snapshot related tool inSnapshotDescribeToolvoidexportSnapshot(String collectionName, String snapshotName, String destPath, Optional<String> backupRepo, Optional<String> asyncReqId)Deprecated.use equivalent snapshot related tool inSnapshotExportToolMap<String,List<String>>getIndexFilesPathForSnapshot(String collectionName, String snapshotName, String pathPrefix)voidlistSnapshots(String collectionName)Deprecated.use equivalent snapshot related tool inSnapshotListToolstatic voidmain(String[] args)voidprepareForExport(String collectionName, String snapshotName, String localFsPath, String pathPrefix, String destPath)HDFS specific step required before exporting a snapshot
-
-
-
Constructor Detail
-
SolrSnapshotsTool
public SolrSnapshotsTool(String solrZkEnsemble)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
createSnapshot
@Deprecated(since="9.8.0") public void createSnapshot(String collectionName, String snapshotName)
Deprecated.use equivalent snapshot related tool inSnapshotCreateTool
-
deleteSnapshot
@Deprecated(since="9.8.0") public void deleteSnapshot(String collectionName, String snapshotName)
Deprecated.use equivalent snapshot related tool inSnapshotDeleteTool
-
listSnapshots
@Deprecated(since="9.8.0") public void listSnapshots(String collectionName)
Deprecated.use equivalent snapshot related tool inSnapshotListTool
-
describeSnapshot
@Deprecated(since="9.8.0") public void describeSnapshot(String collectionName, String snapshotName)
Deprecated.use equivalent snapshot related tool inSnapshotDescribeTool
-
getIndexFilesPathForSnapshot
public Map<String,List<String>> getIndexFilesPathForSnapshot(String collectionName, String snapshotName, String pathPrefix) throws org.apache.solr.client.solrj.SolrServerException, IOException
- Parameters:
pathPrefix- optional- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
buildCopyListings
public void buildCopyListings(String collectionName, String snapshotName, String localFsPath, String pathPrefix) throws org.apache.solr.client.solrj.SolrServerException, IOException
- Parameters:
pathPrefix- optional- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
backupCollectionMetaData
public void backupCollectionMetaData(String collectionName, String snapshotName, String backupLoc) throws org.apache.solr.client.solrj.SolrServerException, IOException
- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
prepareForExport
public void prepareForExport(String collectionName, String snapshotName, String localFsPath, String pathPrefix, String destPath)
HDFS specific step required before exporting a snapshot- Parameters:
pathPrefix- optional
-
exportSnapshot
@Deprecated(since="9.8.0") public void exportSnapshot(String collectionName, String snapshotName, String destPath, Optional<String> backupRepo, Optional<String> asyncReqId)
Deprecated.use equivalent snapshot related tool inSnapshotExportTool
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
-