Class PropagableReindexer
java.lang.Object
com.atlassian.confluence.internal.index.AbstractReindexer
com.atlassian.confluence.internal.index.PropagableReindexer
- All Implemented Interfaces:
Reindexer
Reindexer which assumes indexes reside locally i.e. on each node within a cluster.
Once reindexing is successfully complete, the index is propagated to other nodes within the cluster.
Currently only employed on the Lucene search platform.
See
BlueGreenReindexer
for OpenSearch.- 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
ConstructorDescriptionPropagableReindexer
(SearchableDao searchableDao, SearchIndexAccessor contentIndexAccessor, SearchIndexAccessor changeIndexAccessor, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.confluence.internal.index.BatchIndexerFactory batchIndexerFactory, JournalManager journalManager, JournalService journalService, ClusterManager clusterManager, SystemMaintenanceTaskQueue systemMaintenanceTaskQueue) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
reIndex
(EnumSet<ReIndexOption> maybeOptions, AbstractReindexer.Context ctx) 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
-
PropagableReindexer
public PropagableReindexer(SearchableDao searchableDao, SearchIndexAccessor contentIndexAccessor, SearchIndexAccessor changeIndexAccessor, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.confluence.internal.index.BatchIndexerFactory batchIndexerFactory, JournalManager journalManager, JournalService journalService, ClusterManager clusterManager, SystemMaintenanceTaskQueue systemMaintenanceTaskQueue)
-
-
Method Details
-
reIndex
- Overrides:
reIndex
in classAbstractReindexer
-
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
-