public class DefaultIndexFetcher extends Object implements IndexFetcher
Constructor and Description |
---|
DefaultIndexFetcher(FileStores fileStores,
IndexRecoveryManager indexRecoveryManager,
JiraProperties jiraProperties) |
Modifier and Type | Method and Description |
---|---|
boolean |
indexSnapshotExistsAndIsFreshEnough()
Checks whether any snapshot exists in shared home export/indexsnapshots directory.
|
String |
recoverIndexFromMostRecentSnapshot()
Recovers snapshot from shared home export/indexsnapshots directory.
|
public DefaultIndexFetcher(FileStores fileStores, IndexRecoveryManager indexRecoveryManager, JiraProperties jiraProperties)
public boolean indexSnapshotExistsAndIsFreshEnough() throws IndexException
IndexFetcher
indexSnapshotExistsAndIsFreshEnough
in interface IndexFetcher
IndexException
public String recoverIndexFromMostRecentSnapshot() throws IndexException
IndexFetcher
recoverIndexFromMostRecentSnapshot
in interface IndexFetcher
IndexException
- In case snapshot recovery didn't succeed.Copyright © 2002-2023 Atlassian. All Rights Reserved.