com.atlassian.jira.index.ha
Class DefaultIndexCopyService
java.lang.Object
com.atlassian.jira.index.ha.DefaultIndexCopyService
- All Implemented Interfaces:
- IndexCopyService
public class DefaultIndexCopyService
- extends Object
- implements IndexCopyService
Backs up the index to the shared home folder
- Since:
- v6.1
Method Summary |
void |
backupIndex(String requestingNode)
Backs up all the index files from local home to shared home. |
void |
restoreIndex(String filePath)
copy all the index files form shared home into local home. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BACKUP_INDEX_DONE
public static final String BACKUP_INDEX_DONE
- See Also:
- Constant Field Values
BACKUP_INDEX
public static final String BACKUP_INDEX
- See Also:
- Constant Field Values
INDEX_SNAPSHOT
protected static final String INDEX_SNAPSHOT
- See Also:
- Constant Field Values
DefaultIndexCopyService
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)
backupIndex
public void backupIndex(String requestingNode)
- Backs up all the index files from local home to shared home. Any index in shared home will be cleared.
- Specified by:
backupIndex
in interface IndexCopyService
- Parameters:
requestingNode
- Node requesting the index
restoreIndex
public void restoreIndex(String filePath)
- copy all the index files form shared home into local home.
- Specified by:
restoreIndex
in interface IndexCopyService
- Parameters:
filePath
- path of the zip file containing the index backup.
Copyright © 2002-2014 Atlassian. All Rights Reserved.