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 |
getDurationToRecoverUsingVersions()
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 |
reindexIssuesUpdatedInTheLast(java.time.Duration duration,
TaskProgressSink taskProgressSink)
Note: Unlike
reindexWithVersionCheckIssuesUpdatedInTheLast(Duration, TaskProgressSink) ,
this variant does NOT use versioning to short-circuit building any documents. |
void |
reindexWithVersionCheckIssuesUpdatedInTheLast(java.time.Duration duration,
TaskProgressSink taskProgressSink)
Note: This variant is cheaper: it uses versioning to short-circuit building documents when the index version is
already up-to-date with what's in the db.
|
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 getDurationToRecoverUsingVersions()
void reindexWithVersionCheckIssuesUpdatedInTheLast(java.time.Duration duration, TaskProgressSink taskProgressSink) throws IndexException, SearchException
duration
ago are up-to-date in the index.
They are reindexed/deindexed as needed to achieve this.duration
- specifies how far back (from present time) to look for updated issuestaskProgressSink
- A progress sink.IndexException
SearchException
reindexIssuesUpdatedInTheLast(Duration, TaskProgressSink)
void reindexIssuesUpdatedInTheLast(java.time.Duration duration, TaskProgressSink taskProgressSink) throws IndexException, SearchException
reindexWithVersionCheckIssuesUpdatedInTheLast(Duration, TaskProgressSink)
,
this variant does NOT use versioning to short-circuit building any documents. This is a more expensive command,
as Documents will be built for all issues in the time-span.
duration
ago are up-to-date in the index.
They are reindexed/deindexed as needed to achieve this.duration
- specifies how far back (from present time) to look for updated issuestaskProgressSink
- A progress sink.IndexException
SearchException
reindexWithVersionCheckIssuesUpdatedInTheLast(Duration, TaskProgressSink)
Copyright © 2002-2020 Atlassian. All Rights Reserved.