Package com.atlassian.jira.index.ha
Interface IndexCopyService
- All Known Implementing Classes:
DefaultIndexCopyService
public interface IndexCopyService
- Since:
- v6.1
-
Method Summary
Modifier and TypeMethodDescriptionbackupIndex
(TemporaryFilesProvider temporaryFilesProvider, String requestingNode) Backup an index for replicating to another nodebackupIndex
(String requestingNode) Back up an index for replicating to another nodevoid
restoreIndex
(String filePath) Restore an index.
-
Method Details
-
backupIndex
Back up an index for replicating to another node- Parameters:
requestingNode
- - node that should be notified when backup preparation is available- Returns:
- the name of the backup file, or null if the backup did not occur
-
backupIndex
String backupIndex(@Nullable TemporaryFilesProvider temporaryFilesProvider, @Nullable String requestingNode) Backup an index for replicating to another node- Parameters:
temporaryFilesProvider
- -TemporaryFilesProvider
that will be called upon snapshot archive creationrequestingNode
- - node that should be notified when backup preparation is available- Returns:
- the name of the backup file, or null if the backup did not occur
-
restoreIndex
Restore an index.- Parameters:
filePath
- path of the zip file containing the index backup.
-