Package org.apache.solr.handler
Class IncrementalShardBackup
- java.lang.Object
-
- org.apache.solr.handler.IncrementalShardBackup
-
public class IncrementalShardBackup extends Object
Responsible for orchestrating the actual incremental backup process.If this is the first backup for a collection, all files are uploaded. But if previous backups exist, uses the most recent
ShardBackupMetadata
file to determine which files already exist in the repository and can be skipped.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IncrementalShardBackup.IncrementalShardSnapshotResponse
-
Constructor Summary
Constructors Constructor Description IncrementalShardBackup(BackupRepository backupRepo, SolrCore solrCore, BackupFilePaths incBackupFiles, ShardBackupId prevShardBackupId, ShardBackupId shardBackupId, Optional<String> commitNameOption)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IncrementalShardBackup.IncrementalShardSnapshotResponse
backup()
protected IncrementalShardBackup.IncrementalShardSnapshotResponse
backup(org.apache.lucene.index.IndexCommit indexCommit)
-
-
-
Constructor Detail
-
IncrementalShardBackup
public IncrementalShardBackup(BackupRepository backupRepo, SolrCore solrCore, BackupFilePaths incBackupFiles, ShardBackupId prevShardBackupId, ShardBackupId shardBackupId, Optional<String> commitNameOption)
- Parameters:
prevShardBackupId
- previous ShardBackupMetadata file which will be used for skipping uploading index files already present in this file.shardBackupId
- file where all meta data of this backup will be stored to.
-
-
Method Detail
-
backup
public IncrementalShardBackup.IncrementalShardSnapshotResponse backup() throws Exception
- Throws:
Exception
-
backup
protected IncrementalShardBackup.IncrementalShardSnapshotResponse backup(org.apache.lucene.index.IndexCommit indexCommit) throws Exception
- Throws:
Exception
-
-