Class IndexServiceImpl
java.lang.Object
com.atlassian.confluence.internal.search.IndexServiceImpl
- All Implemented Interfaces:
IndexService
-
Field Summary
Fields inherited from interface com.atlassian.confluence.api.service.index.IndexService
REINDEX_CLUSTER_LOCK_ACQUIRE_TIMEOUT_MS, REINDEX_CLUSTER_LOCK_NAME -
Constructor Summary
ConstructorsConstructorDescriptionIndexServiceImpl(ReIndexJobManager reIndexJobManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.beehive.ClusterLockService clusterLockService, ClusterManager clusterManager, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, SearchPlatformConfig searchPlatformConfig, IndexManager indexManager) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the last reindexing task.booleanbooleanreindex(@NonNull List<String> spaceKeys, @NonNull EnumSet<ReIndexOption> reIndexOptions) Triggers a reindex with the specified space keys and options.voidResets the status of the reindexing job.voidUnindexes all content in the index.
-
Constructor Details
-
IndexServiceImpl
public IndexServiceImpl(ReIndexJobManager reIndexJobManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.beehive.ClusterLockService clusterLockService, ClusterManager clusterManager, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, SearchPlatformConfig searchPlatformConfig, IndexManager indexManager)
-
-
Method Details
-
isReIndexing
public boolean isReIndexing()- Specified by:
isReIndexingin interfaceIndexService- Returns:
- false if the last re-indexing job has completed or the re-indexing job has never been run
-
reindex
public boolean reindex(@NonNull List<String> spaceKeys, @NonNull EnumSet<ReIndexOption> reIndexOptions) throws InterruptedException Description copied from interface:IndexServiceTriggers a reindex with the specified space keys and options.- Specified by:
reindexin interfaceIndexService- Parameters:
spaceKeys- List of space keys to reindexreIndexOptions- Set of reindex options for reindexing- Returns:
- true if reindex was started successfully
- Throws:
InterruptedException- if the operation is interrupted
-
resetJobStatus
public void resetJobStatus()Description copied from interface:IndexServiceResets the status of the reindexing job.- Specified by:
resetJobStatusin interfaceIndexService
-
getLastReindexingTask
Description copied from interface:IndexServiceRetrieves the last reindexing task.- Specified by:
getLastReindexingTaskin interfaceIndexService- Returns:
- the last reindexing task, or null if no reindexing has been performed
-
unIndexAll
public void unIndexAll()Description copied from interface:IndexServiceUnindexes all content in the index.- Specified by:
unIndexAllin interfaceIndexService
-