public class IndexerManagerImpl extends Object implements IndexerManager, org.springframework.beans.factory.DisposableBean
| Constructor and Description |
|---|
IndexerManagerImpl(com.atlassian.config.ApplicationConfiguration applicationConfig,
com.atlassian.config.db.HibernateConfig hibernateConfig,
List<Indexer> indexers) |
| 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.
|
int |
getNumberOfDocuments()
How many documents all indexes have in total.
|
protected List<Indexer> |
getPendingIndexers() |
boolean |
isPendingFullReindex()
Check if instance is pending full reindex either because of call to
IndexerManager.setPendingFullReindex() or because of aborted full reindex |
boolean |
isPendingPartialReindex()
Check if instance is pending full reindex of SOME indexers 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.
|
void |
setPendingPartialReindex(List<String> indexerNames)
Persist information that full reindex of SOME indexers is requested.
|
com.google.common.util.concurrent.ListenableFuture<Boolean> |
triggerFullReindex()
Triggers asynchronous full reindex.
|
com.google.common.util.concurrent.ListenableFuture<Boolean> |
triggerPartialReindex()
Trigger asynchronous reindex of previously selected indexers
Selected indexes will be removed and all documents will be regenerated by
Indexers. |
protected com.google.common.util.concurrent.ListenableFuture<Boolean> |
triggerReindex(List<Indexer> requestedIndexers) |
@NotNull public com.google.common.util.concurrent.ListenableFuture<Boolean> triggerFullReindex()
IndexerManagerIndexers.triggerFullReindex in interface IndexerManager@NotNull public com.google.common.util.concurrent.ListenableFuture<Boolean> triggerPartialReindex()
IndexerManagerIndexers.triggerPartialReindex in interface IndexerManagerpublic void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeanprotected com.google.common.util.concurrent.ListenableFuture<Boolean> triggerReindex(@NotNull List<Indexer> requestedIndexers)
public long getEstimatedReindexTime()
IndexerManagergetEstimatedReindexTime in interface IndexerManagerpublic int getNumberOfDocuments()
IndexerManagergetNumberOfDocuments in interface IndexerManagerpublic boolean isReindexInProgress()
isReindexInProgress in interface IndexerManagerpublic void setPendingFullReindex()
IndexerManagersetPendingFullReindex in interface IndexerManagerpublic boolean isPendingFullReindex()
IndexerManagerIndexerManager.setPendingFullReindex() or because of aborted full reindexisPendingFullReindex in interface IndexerManagerpublic Date getEstimatedReindexCompletionTime()
IndexerManagergetEstimatedReindexCompletionTime in interface IndexerManagerpublic com.google.common.util.concurrent.ListenableFuture<Boolean> pauseIndexing()
IndexerManagerpauseIndexing in interface IndexerManagerpublic boolean isPendingPartialReindex()
IndexerManagerisPendingPartialReindex in interface IndexerManagerpublic void setPendingPartialReindex(List<String> indexerNames)
IndexerManagersetPendingPartialReindex in interface IndexerManagerCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.