Class IndexServiceImpl

java.lang.Object
com.atlassian.confluence.internal.search.IndexServiceImpl
All Implemented Interfaces:
IndexService

public class IndexServiceImpl extends Object implements IndexService
  • Constructor Details

    • IndexServiceImpl

      public IndexServiceImpl(ReIndexJobManager reIndexJobManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.beehive.ClusterLockService clusterLockService, ClusterManager clusterManager, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, SearchPlatformConfig searchPlatformConfig, IndexManager indexManager)
  • Method Details

    • isReIndexing

      public boolean isReIndexing()
      Specified by:
      isReIndexing in interface IndexService
      Returns:
      false if the last re-indexing job has completed or the re-indexing job has never been run
    • reindex

      public boolean reindex(@NonNull List<String> spaceKeys, @NonNull EnumSet<ReIndexOption> reIndexOptions) throws InterruptedException
      Description copied from interface: IndexService
      Triggers a reindex with the specified space keys and options.
      Specified by:
      reindex in interface IndexService
      Parameters:
      spaceKeys - List of space keys to reindex
      reIndexOptions - Set of reindex options for reindexing
      Returns:
      true if reindex was started successfully
      Throws:
      InterruptedException - if the operation is interrupted
    • resetJobStatus

      public void resetJobStatus()
      Description copied from interface: IndexService
      Resets the status of the reindexing job.
      Specified by:
      resetJobStatus in interface IndexService
    • getLastReindexingTask

      public ReIndexTaskInfo getLastReindexingTask()
      Description copied from interface: IndexService
      Retrieves the last reindexing task.
      Specified by:
      getLastReindexingTask in interface IndexService
      Returns:
      the last reindexing task, or null if no reindexing has been performed
    • unIndexAll

      public void unIndexAll()
      Description copied from interface: IndexService
      Unindexes all content in the index.
      Specified by:
      unIndexAll in interface IndexService