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 |
copyIndex(String sourcePath,
String destinationPath)
|
void |
restoreIndex()
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 |
DefaultIndexCopyService
public DefaultIndexCopyService(IndexPathManager indexPathManager,
JiraHome jiraHome,
ClusteredIndexUtils clusteredIndexUtils,
MessageHandler messageHandler)
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
copyIndex
public void copyIndex(String sourcePath,
String destinationPath)
- Specified by:
copyIndex
in interface IndexCopyService
- Parameters:
sourcePath
- the path of the index to copydestinationPath
- where to copy the index to
restoreIndex
public void restoreIndex()
- copy all the index files form shared home into local home.
- Specified by:
restoreIndex
in interface IndexCopyService
Copyright © 2002-2013 Atlassian. All Rights Reserved.