public class DefaultIndexCopyService extends Object implements IndexCopyService
Modifier and Type | Field and Description |
---|---|
static String |
BACKUP_INDEX |
static String |
BACKUP_INDEX_DONE |
Constructor and Description |
---|
DefaultIndexCopyService(FileStores fileStores,
IndexSnapshotOperator indexSnapshotOperator,
MessageHandlerService messageHandlerService,
com.atlassian.event.api.EventPublisher eventPublisher,
IndexRecoveryManager indexRecoveryManager,
I18nHelper i18n,
OfBizReplicatedIndexOperationStore ofBizNodeIndexOperationStore,
IssueIndexManager issueManager) |
Modifier and Type | Method and Description |
---|---|
String |
backupIndex(String requestingNode)
Backs up all the index files from local home to a backup archive on the shared home.
|
String |
backupIndex(TemporaryFilesProvider temporaryFilesProvider,
String requestingNode)
Backup an index for replicating to another node
|
void |
restoreIndex(String filePath)
Restores a backup archive from the shared home into the local home.
|
public static final String BACKUP_INDEX_DONE
public static final String BACKUP_INDEX
public DefaultIndexCopyService(FileStores fileStores, IndexSnapshotOperator indexSnapshotOperator, MessageHandlerService messageHandlerService, com.atlassian.event.api.EventPublisher eventPublisher, IndexRecoveryManager indexRecoveryManager, I18nHelper i18n, OfBizReplicatedIndexOperationStore ofBizNodeIndexOperationStore, IssueIndexManager issueManager)
public String backupIndex(@Nullable String requestingNode)
backupIndex
in interface IndexCopyService
requestingNode
- - node that should be notified when backup preparation is availablepublic String backupIndex(@Nullable TemporaryFilesProvider temporaryFilesProvider, @Nullable String requestingNode)
IndexCopyService
backupIndex
in interface IndexCopyService
temporaryFilesProvider
- - TemporaryFilesProvider
that will be called upon snapshot archive creationrequestingNode
- - node that should be notified when backup preparation is availablepublic void restoreIndex(String filePath)
restoreIndex
in interface IndexCopyService
filePath
- path of the zip file containing the index backup.Copyright © 2002-2024 Atlassian. All Rights Reserved.