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
IndexFetcherindexSnapshotExistsAndIsFreshEnough in interface IndexFetcherIndexExceptionpublic void recoverIndexFromMostRecentSnapshot()
throws IndexException
IndexFetcherrecoverIndexFromMostRecentSnapshot in interface IndexFetcherIndexException - In case snapshot recovery didn't succeed.Copyright © 2002-2022 Atlassian. All Rights Reserved.