Class DefaultReIndexService
- java.lang.Object
-
- com.atlassian.confluence.plugins.rest.service.DefaultReIndexService
-
- All Implemented Interfaces:
ReIndexService
public class DefaultReIndexService extends Object implements ReIndexService
- Since:
- 8.3.0
-
-
Field Summary
-
Fields inherited from interface com.atlassian.confluence.plugins.rest.service.ReIndexService
REINDEX_CLUSTER_LOCK_ACQUIRE_TIMEOUT_MS, REINDEX_CLUSTER_LOCK_NAME
-
-
Constructor Summary
Constructors Constructor Description DefaultReIndexService(IndexManager indexManager, ReIndexJobManager reIndexJobManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.beehive.ClusterLockService clusterLockService, ClusterManager clusterManager, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isReIndexing()
boolean
reindex(@NonNull List<String> spaceKeys, @NonNull EnumSet<ReIndexOption> reIndexOptions)
void
resetJobStatus()
-
-
-
Constructor Detail
-
DefaultReIndexService
public DefaultReIndexService(IndexManager indexManager, ReIndexJobManager reIndexJobManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.beehive.ClusterLockService clusterLockService, ClusterManager clusterManager, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate)
-
-
Method Detail
-
isReIndexing
public boolean isReIndexing()
- Specified by:
isReIndexing
in interfaceReIndexService
- 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
- Specified by:
reindex
in interfaceReIndexService
- Throws:
InterruptedException
-
resetJobStatus
public void resetJobStatus()
- Specified by:
resetJobStatus
in interfaceReIndexService
-
-