public class DefaultIndexRecoveryManager extends Object implements IndexRecoveryManager
INDEXSNAPSHOTS, SNAPSHOT_ARCHIVE
Constructor and Description |
---|
DefaultIndexRecoveryManager(SearchProvider searchProvider,
OfBizDelegator delegator,
IssueBatcherFactory issueBatcherFactory,
IssueManager issueManager,
IssueIndexer issueIndexer,
IndexLifecycleManager indexLifecycleManager,
IndexPathManager indexPathManager,
IssueFactory issueFactory,
SharedEntityIndexManager sharedEntityIndexManager,
IndexingCounterManager indexingCounterManager,
IssueIndexManager indexManager) |
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.
|
boolean |
isEmpty() |
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.
|
int |
size() |
public DefaultIndexRecoveryManager(SearchProvider searchProvider, OfBizDelegator delegator, IssueBatcherFactory issueBatcherFactory, IssueManager issueManager, IssueIndexer issueIndexer, IndexLifecycleManager indexLifecycleManager, IndexPathManager indexPathManager, IssueFactory issueFactory, SharedEntityIndexManager sharedEntityIndexManager, IndexingCounterManager indexingCounterManager, IssueIndexManager indexManager)
public IndexCommandResult recoverIndexFromBackup(File recoveryFile, TaskProgressSink taskProgressSink) throws IndexException
IndexRecoveryManager
recoverIndexFromBackup
in interface IndexRecoveryManager
recoveryFile
- The backup fileIndexException
- If we are unable to recover the indexpublic void reindexIssuesIn(com.atlassian.core.util.DateUtils.DateRange range, TaskProgressSink taskProgressSink) throws IndexException, SearchException
IndexRecoveryManager
reindexIssuesIn
in interface IndexRecoveryManager
range
- Date range to recovertaskProgressSink
- A progress sink.IndexException
SearchException
public com.atlassian.core.util.DateUtils.DateRange getDurationToRecover()
IndexRecoveryManager
getDurationToRecover
in interface IndexRecoveryManager
Copyright © 2002-2015 Atlassian. All Rights Reserved.