Class BlueGreenReindexer

java.lang.Object
com.atlassian.confluence.internal.index.AbstractReindexer
com.atlassian.confluence.internal.index.BlueGreenReindexer
All Implemented Interfaces:
Reindexer

@Internal public class BlueGreenReindexer extends AbstractReindexer
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
  • Constructor Details

  • Method Details

    • reIndex

      public void reIndex(EnumSet<ReIndexOption> maybeOptions, Progress progress)
      Description copied from interface: Reindexer
      Triggers a system wide re-index all entities from the database.
      Specified by:
      reIndex in interface Reindexer
      Overrides:
      reIndex in class AbstractReindexer
      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