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

Field Summary
static String BACKUP_INDEX
           
static String BACKUP_INDEX_DONE
           
protected static String INDEX_SNAPSHOT
           
 
Constructor Summary
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)
           
 
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
 

Field Detail

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
Constructor Detail

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)
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
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.