Class OnRestoreSiteSearchIndexer
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.restore.searchindexer.OnRestoreSiteSearchIndexer
-
- All Implemented Interfaces:
OnRestoreSearchIndexer
public class OnRestoreSiteSearchIndexer extends Object implements OnRestoreSearchIndexer
Responsible for rebuilding search index after site restore.- Since:
- 8.2.0
-
-
Constructor Summary
Constructors Constructor Description OnRestoreSiteSearchIndexer(SearchIndexerAdapter searchIndexerAdapter, JournalStateStore journalStateStore, JournalStateStore bandanaJournalStateStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush()It is called when all searchable objects are persisted so the indexer can finish its job.voidonObjectsPersisting(Collection<ImportedObjectV2> importedObjects)A consumer accepting persisted objects.
-
-
-
Constructor Detail
-
OnRestoreSiteSearchIndexer
public OnRestoreSiteSearchIndexer(SearchIndexerAdapter searchIndexerAdapter, JournalStateStore journalStateStore, JournalStateStore bandanaJournalStateStore)
-
-
Method Detail
-
onObjectsPersisting
public void onObjectsPersisting(Collection<ImportedObjectV2> importedObjects)
Description copied from interface:OnRestoreSearchIndexerA consumer accepting persisted objects. Objects have database IDs.- Specified by:
onObjectsPersistingin interfaceOnRestoreSearchIndexer
-
flush
public void flush() throws BackupRestoreExceptionDescription copied from interface:OnRestoreSearchIndexerIt 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:
flushin interfaceOnRestoreSearchIndexer- Throws:
BackupRestoreException
-
-