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(IndexPathManager indexPathManager,
JiraHome jiraHome,
IndexUtils indexUtils,
MessageHandlerService messageHandlerService,
com.atlassian.event.api.EventPublisher eventPublisher,
IndexRecoveryManager indexRecoveryManager,
org.ofbiz.core.entity.DelegatorInterface delegatorInterface,
I18nHelper i18n,
OfBizReplicatedIndexOperationStore ofBizNodeIndexOperationStore) |
Modifier and Type | Method and Description |
---|---|
String |
backupIndex(String requestingNode)
Backs up all the index files from local home to a snapshot archive on the shared home.
|
String |
backupIndex(String requestingNode,
IndexSnapshotContribution contribution)
Backup an index for replicating to another node
|
void |
restoreIndex(String filePath)
Restores a snapshot archive from the shared home into the local home.
|
public static final String BACKUP_INDEX_DONE
public static final String BACKUP_INDEX
public DefaultIndexCopyService(IndexPathManager indexPathManager, JiraHome jiraHome, IndexUtils indexUtils, MessageHandlerService messageHandlerService, com.atlassian.event.api.EventPublisher eventPublisher, IndexRecoveryManager indexRecoveryManager, org.ofbiz.core.entity.DelegatorInterface delegatorInterface, I18nHelper i18n, OfBizReplicatedIndexOperationStore ofBizNodeIndexOperationStore)
public String backupIndex(String requestingNode)
backupIndex
in interface IndexCopyService
requestingNode
- Node requesting the indexpublic String backupIndex(String requestingNode, IndexSnapshotContribution contribution)
IndexCopyService
backupIndex
in interface IndexCopyService
requestingNode
- Node requesting the indexcontribution
- an additional contribution 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-2015 Atlassian. All Rights Reserved.