public interface IndexRecoveryManager extends Sized
Modifier and Type | Field and Description |
---|---|
static String |
INDEXSNAPSHOTS |
static String |
SNAPSHOT_ARCHIVE |
Modifier and Type | Method and Description |
---|---|
com.atlassian.core.util.DateUtils.DateRange |
getDurationToRecover()
Gets the updated date range for issues that need to be re-indexed because the latest updates are missing from the index.
|
IndexCommandResult |
recoverIndexFromBackup(File recoveryFile,
TaskProgressSink taskProgressSink)
Recovers an index from an index backup.
|
void |
reindexIssuesIn(com.atlassian.core.util.DateUtils.DateRange range,
TaskProgressSink taskProgressSink)
Reindex issues with last updated date within the following range
The range is
fromLatest date in the index
toLatest date in the database
The range can actually be negative, indicating there are indexed updates which do not belong and so may need to be removed.
|
static final String SNAPSHOT_ARCHIVE
static final String INDEXSNAPSHOTS
IndexCommandResult recoverIndexFromBackup(File recoveryFile, TaskProgressSink taskProgressSink) throws IndexException
recoveryFile
- The backup filetaskProgressSink
- IndexException
- If we are unable to recover the indexcom.atlassian.core.util.DateUtils.DateRange getDurationToRecover()
void reindexIssuesIn(com.atlassian.core.util.DateUtils.DateRange range, TaskProgressSink taskProgressSink) throws IndexException, SearchException
range
- Date range to recovertaskProgressSink
- A progress sink.IndexException
SearchException
Copyright © 2002-2019 Atlassian. All Rights Reserved.