public class

DefaultIndexCopyService

extends Object
implements IndexCopyService
java.lang.Object
   ↳ com.atlassian.jira.index.ha.DefaultIndexCopyService

Class Overview

Backs up the index to the shared home folder

Summary

Constants
String BACKUP_INDEX
String BACKUP_INDEX_DONE
String INDEX_SNAPSHOT
Public Constructors
DefaultIndexCopyService(IndexPathManager indexPathManager, JiraHome jiraHome, IndexUtils indexUtils, MessageHandlerService messageHandlerService, EventPublisher eventPublisher, IndexRecoveryManager indexRecoveryManager, DelegatorInterface delegatorInterface, I18nHelper i18n, OfBizReplicatedIndexOperationStore ofBizNodeIndexOperationStore)
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.index.ha.IndexCopyService

Constants

public static final String BACKUP_INDEX

Constant Value: "Backup Index"

public static final String BACKUP_INDEX_DONE

Constant Value: "Index Backed Up"

protected static final String INDEX_SNAPSHOT

Constant Value: "IndexSnapshot_"

Public Constructors

public DefaultIndexCopyService (IndexPathManager indexPathManager, JiraHome jiraHome, IndexUtils indexUtils, MessageHandlerService messageHandlerService, EventPublisher eventPublisher, IndexRecoveryManager indexRecoveryManager, DelegatorInterface delegatorInterface, I18nHelper i18n, OfBizReplicatedIndexOperationStore ofBizNodeIndexOperationStore)

Public Methods

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.

Parameters
requestingNode Node requesting the index

public void restoreIndex (String filePath)

copy all the index files form shared home into local home.

Parameters
filePath path of the zip file containing the index backup.