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(JiraHome jiraHome,
IndexUtils indexUtils,
MessageHandlerService messageHandlerService,
com.atlassian.event.api.EventPublisher eventPublisher,
IndexRecoveryManager indexRecoveryManager,
org.ofbiz.core.entity.DelegatorInterface delegatorInterface,
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 a backup archive on the shared home.
|
String |
backupIndex(String requestingNode,
TemporaryFilesProvider temporaryFilesProvider)
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(JiraHome jiraHome, IndexUtils indexUtils, MessageHandlerService messageHandlerService, com.atlassian.event.api.EventPublisher eventPublisher, IndexRecoveryManager indexRecoveryManager, org.ofbiz.core.entity.DelegatorInterface delegatorInterface, I18nHelper i18n, OfBizReplicatedIndexOperationStore ofBizNodeIndexOperationStore, IssueIndexManager issueManager)
public String backupIndex(String requestingNode)
backupIndex
in interface IndexCopyService
requestingNode
- Node requesting the indexpublic String backupIndex(String requestingNode, TemporaryFilesProvider temporaryFilesProvider)
IndexCopyService
backupIndex
in interface IndexCopyService
requestingNode
- Node requesting the indextemporaryFilesProvider
- optionally creates a list of temporary files to be added to the backuppublic void restoreIndex(String filePath)
restoreIndex
in interface IndexCopyService
filePath
- path of the zip file containing the index backup.Copyright © 2002-2022 Atlassian. All Rights Reserved.