Class IndexerManagerImpl

java.lang.Object
com.atlassian.bamboo.index.IndexerManagerImpl
All Implemented Interfaces:
IndexerManager, org.springframework.beans.factory.DisposableBean

public class IndexerManagerImpl extends Object implements IndexerManager, org.springframework.beans.factory.DisposableBean
  • Constructor Details

    • IndexerManagerImpl

      public IndexerManagerImpl(@NotNull @NotNull com.atlassian.config.ApplicationConfiguration applicationConfig, @NotNull @NotNull com.atlassian.config.db.HibernateConfig hibernateConfig, @NotNull @NotNull QuickSearchIndexer quickSearchIndexer)
  • Method Details

    • triggerFullReindex

      @NotNull public @NotNull Future<Boolean> triggerFullReindex()
      Description copied from interface: IndexerManager
      Triggers asynchronous full reindex.
      Specified by:
      triggerFullReindex in interface IndexerManager
      Returns:
      Future object that will return true on successful operation completion
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
    • triggerReindex

      protected com.google.common.util.concurrent.ListenableFuture<Boolean> triggerReindex()
    • isReindexInProgress

      public boolean isReindexInProgress()
      Specified by:
      isReindexInProgress in interface IndexerManager
      Returns:
      true if reindex is running
    • setPendingFullReindex

      public void setPendingFullReindex()
      Description copied from interface: IndexerManager
      Persist information that full reindex is requested. This flag will be used during Bamboo startup, it is supposed to be set by import/upgrade only and will be cleared by the next successful full reindex.
      Specified by:
      setPendingFullReindex in interface IndexerManager
    • isPendingFullReindex

      public boolean isPendingFullReindex()
      Description copied from interface: IndexerManager
      Check if instance is pending full reindex either because of call to IndexerManager.setPendingFullReindex() or because of aborted full reindex
      Specified by:
      isPendingFullReindex in interface IndexerManager
      Returns:
      true if there's full reindex pending
    • pauseIndexing

      public Future<Boolean> pauseIndexing()
      Description copied from interface: IndexerManager
      Pause indexing.
      Specified by:
      pauseIndexing in interface IndexerManager
      Returns:
      future which allows to be notified when index in progress is finished.
    • getEstimatedReindexTime

      public long getEstimatedReindexTime()
      Description copied from interface: IndexerManager
      How long will it take to reindex all indexes.
      Specified by:
      getEstimatedReindexTime in interface IndexerManager
      Returns:
      seconds of how long
    • getEstimatedReindexCompletionTime

      public Date getEstimatedReindexCompletionTime()
      Description copied from interface: IndexerManager
      Returns information on estimated completion time while full indexing operation is running. Time is calculated based on previous indexer runs and is not refreshed during reindex operation.
      Specified by:
      getEstimatedReindexCompletionTime in interface IndexerManager
      Returns:
      estimated completion date, null when no reindex operation is running at the moment