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
Indexer s. |
protected com.google.common.util.concurrent.ListenableFuture<Boolean> |
triggerReindex(List<Indexer> requestedIndexers) |
@NotNull public com.google.common.util.concurrent.ListenableFuture<Boolean> triggerFullReindex()
IndexerManager
Indexer
s.triggerFullReindex
in interface IndexerManager
@NotNull public com.google.common.util.concurrent.ListenableFuture<Boolean> triggerPartialReindex()
IndexerManager
Indexer
s.triggerPartialReindex
in interface IndexerManager
public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean
protected com.google.common.util.concurrent.ListenableFuture<Boolean> triggerReindex(@NotNull List<Indexer> requestedIndexers)
public long getEstimatedReindexTime()
IndexerManager
getEstimatedReindexTime
in interface IndexerManager
public int getNumberOfDocuments()
IndexerManager
getNumberOfDocuments
in interface IndexerManager
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 Date getEstimatedReindexCompletionTime()
IndexerManager
getEstimatedReindexCompletionTime
in interface IndexerManager
public com.google.common.util.concurrent.ListenableFuture<Boolean> pauseIndexing()
IndexerManager
pauseIndexing
in interface IndexerManager
public boolean isPendingPartialReindex()
IndexerManager
isPendingPartialReindex
in interface IndexerManager
public void setPendingPartialReindex(List<String> indexerNames)
IndexerManager
setPendingPartialReindex
in interface IndexerManager
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.