com.atlassian.jira.index.ha
Class DefaultIndexCopyService

java.lang.Object
  extended by 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

Constructor Summary
DefaultIndexCopyService(IndexPathManager indexPathManager, JiraHome jiraHome, IndexUtils clusteredIndexUtils, MessageHandler messageHandler, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
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
 

Constructor Detail

DefaultIndexCopyService

public DefaultIndexCopyService(IndexPathManager indexPathManager,
                               JiraHome jiraHome,
                               IndexUtils clusteredIndexUtils,
                               MessageHandler messageHandler,
                               com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail

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 copy
destinationPath - 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-2014 Atlassian. All Rights Reserved.