public class IndexerManagerImpl extends Object implements IndexerManager, org.springframework.beans.factory.DisposableBean
Constructor and Description |
---|
IndexerManagerImpl(@NotNull com.atlassian.config.ApplicationConfiguration applicationConfig,
@NotNull com.atlassian.config.db.HibernateConfig hibernateConfig,
@NotNull QuickSearchIndexer quickSearchIndexer) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
Date |
getEstimatedReindexCompletionTime()
Returns information on estimated completion time while full indexing operation is running.
|
long |
getEstimatedReindexTime()
How long will it take to reindex all indexes.
|
boolean |
isPendingFullReindex()
Check if instance is pending full reindex either because of call to
IndexerManager.setPendingFullReindex() or because of aborted full reindex |
boolean |
isReindexInProgress() |
com.google.common.util.concurrent.ListenableFuture<Boolean> |
pauseIndexing()
Pause indexing.
|
void |
setPendingFullReindex()
Persist information that full reindex is requested.
|
@NotNull com.google.common.util.concurrent.ListenableFuture<Boolean> |
triggerFullReindex()
Triggers asynchronous full reindex.
|
protected com.google.common.util.concurrent.ListenableFuture<Boolean> |
triggerReindex() |
public IndexerManagerImpl(@NotNull @NotNull com.atlassian.config.ApplicationConfiguration applicationConfig, @NotNull @NotNull com.atlassian.config.db.HibernateConfig hibernateConfig, @NotNull @NotNull QuickSearchIndexer quickSearchIndexer)
@NotNull public @NotNull com.google.common.util.concurrent.ListenableFuture<Boolean> triggerFullReindex()
IndexerManager
triggerFullReindex
in interface IndexerManager
public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean
protected com.google.common.util.concurrent.ListenableFuture<Boolean> triggerReindex()
public boolean isReindexInProgress()
isReindexInProgress
in interface IndexerManager
public void setPendingFullReindex()
IndexerManager
setPendingFullReindex
in interface IndexerManager
public boolean isPendingFullReindex()
IndexerManager
IndexerManager.setPendingFullReindex()
or because of aborted full reindexisPendingFullReindex
in interface IndexerManager
public com.google.common.util.concurrent.ListenableFuture<Boolean> pauseIndexing()
IndexerManager
pauseIndexing
in interface IndexerManager
public long getEstimatedReindexTime()
IndexerManager
getEstimatedReindexTime
in interface IndexerManager
public Date getEstimatedReindexCompletionTime()
IndexerManager
getEstimatedReindexCompletionTime
in interface IndexerManager
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.