Class BlueGreenReindexer
java.lang.Object
com.atlassian.confluence.internal.index.AbstractReindexer
com.atlassian.confluence.internal.index.BlueGreenReindexer
- All Implemented Interfaces:
Reindexer
Reindexer which uses blue/green approach in order to avoid downtime, i.e. by creating a staging index.
Currently only employed when using OpenSearch.
See
PropagableReindexer
for Lucene.- Since:
- 9.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.confluence.internal.index.AbstractReindexer
AbstractReindexer.Context
-
Field Summary
Fields inherited from class com.atlassian.confluence.internal.index.AbstractReindexer
batchIndexerFactory, changeIndexAccessor, contentIndexAccessor, DEFAULT_REINDEX_PARTITION_SIZE_MAX, eventPublisher, INDEXES_TO_SET_EARLIEST_ENTRY, INDEXES_TO_SNAPSHOT, journalManager, journalService, KEY_REINDEX_PARTITION_SIZE_MAX, searchableDao
-
Constructor Summary
ConstructorDescriptionBlueGreenReindexer
(SearchableDao searchableDao, SearchIndexAccessor contentIndexAccessor, SearchIndexAccessor changeIndexAccessor, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.confluence.internal.index.BatchIndexerFactory batchIndexerFactory, JournalManager journalManager, JournalService journalService, StagingIndexFactory stagingIndexFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
reIndex
(EnumSet<ReIndexOption> maybeOptions, Progress progress) Triggers a system wide re-index all entities from the database.boolean
Gets whether journal flush should be suspended when this reindexer is performing a reindex.Methods inherited from class com.atlassian.confluence.internal.index.AbstractReindexer
reIndex, reIndex, reIndex
-
Constructor Details
-
BlueGreenReindexer
public BlueGreenReindexer(SearchableDao searchableDao, SearchIndexAccessor contentIndexAccessor, SearchIndexAccessor changeIndexAccessor, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.confluence.internal.index.BatchIndexerFactory batchIndexerFactory, JournalManager journalManager, JournalService journalService, StagingIndexFactory stagingIndexFactory)
-
-
Method Details
-
reIndex
Description copied from interface:Reindexer
Triggers a system wide re-index all entities from the database.- Specified by:
reIndex
in interfaceReindexer
- Overrides:
reIndex
in classAbstractReindexer
- Parameters:
maybeOptions
- Optional. Allows a subset of all searchable content to be re-indexed.progress
- object to track progress of re-index.
-
shouldSuspendJournalFlush
public boolean shouldSuspendJournalFlush()Description copied from interface:Reindexer
Gets whether journal flush should be suspended when this reindexer is performing a reindex.- Returns:
- true if journal flush should be suspended when this reindexer is performing a reindex
-