public class SnapshotDeletionPolicyContributionStrategy extends Object implements IndexBackupContributionStrategy
Index.Manager
by creating IndexFileDeleter.CommitPoint
and releasing them after the files are processed by the archiving process.
Expects all Index.Manager
s
contain Writer
s that are configured to use
SnapshotDeletionPolicy
SnapshotDeletionPolicy
Modifier and Type | Class and Description |
---|---|
static class |
SnapshotDeletionPolicyContributionStrategy.CommitOperationsFactory |
NO_OP_BACKUP_STRATEGY
Constructor and Description |
---|
SnapshotDeletionPolicyContributionStrategy(IndexPathManager indexPathManager,
SnapshotDeletionPolicyContributionStrategy.CommitOperationsFactory operationsFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addToBackup(BackupBuilder backupBuilder,
Collection<IndexPerformAndSubpath> indexes)
Creates
IndexFileDeleter.CommitPoint for all the given indexes
before passing files from each commit point to backupBuilder . |
public SnapshotDeletionPolicyContributionStrategy(IndexPathManager indexPathManager, SnapshotDeletionPolicyContributionStrategy.CommitOperationsFactory operationsFactory)
public void addToBackup(BackupBuilder backupBuilder, Collection<IndexPerformAndSubpath> indexes)
IndexFileDeleter.CommitPoint
for all the given indexes
before passing files from each commit point to backupBuilder
. Releases all the acquired
IndexFileDeleter.CommitPoint
s before exitaddToBackup
in interface IndexBackupContributionStrategy
Copyright © 2002-2021 Atlassian. All Rights Reserved.