Class OnRestoreSiteSearchIndexer
java.lang.Object
com.atlassian.confluence.impl.backuprestore.restore.searchindexer.OnRestoreSiteSearchIndexer
- All Implemented Interfaces:
OnRestoreSearchIndexer
Responsible for rebuilding search index after site restore.
- Since:
- 8.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionOnRestoreSiteSearchIndexer
(SearchIndexerAdapter searchIndexerAdapter, JournalStateStore journalStateStore, JournalStateStore bandanaJournalStateStore) -
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
It is called when all searchable objects are persisted so the indexer can finish its job.void
onObjectsPersisting
(Collection<ImportedObjectV2> importedObjects) A consumer accepting persisted objects.
-
Constructor Details
-
OnRestoreSiteSearchIndexer
public OnRestoreSiteSearchIndexer(SearchIndexerAdapter searchIndexerAdapter, JournalStateStore journalStateStore, JournalStateStore bandanaJournalStateStore)
-
-
Method Details
-
onObjectsPersisting
Description copied from interface:OnRestoreSearchIndexer
A consumer accepting persisted objects. Objects have database IDs.- Specified by:
onObjectsPersisting
in interfaceOnRestoreSearchIndexer
-
flush
Description copied from interface:OnRestoreSearchIndexer
It is called when all searchable objects are persisted so the indexer can finish its job. This method can be called when not all historical versions are persisted.- Specified by:
flush
in interfaceOnRestoreSearchIndexer
- Throws:
BackupRestoreException
-