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