Class IndexerManagerImpl

  • All Implemented Interfaces:
    IndexerManager, org.springframework.beans.factory.DisposableBean

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

      • IndexerManagerImpl

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

      • triggerFullReindex

        @NotNull
        public @NotNull com.google.common.util.concurrent.ListenableFuture<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()
      • 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
      • pauseIndexing

        public com.google.common.util.concurrent.ListenableFuture<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