Class ReIndexMaintenanceTaskRunner
- java.lang.Object
-
- com.atlassian.confluence.impl.system.runner.ReIndexMaintenanceTaskRunner
-
- All Implemented Interfaces:
SystemMaintenanceTaskRunner<ReIndexMaintenanceTask>
public class ReIndexMaintenanceTaskRunner extends Object implements SystemMaintenanceTaskRunner<ReIndexMaintenanceTask>
Trigger a reindex task for site or spaces- Since:
- 8.3.0
-
-
Constructor Summary
Constructors Constructor Description ReIndexMaintenanceTaskRunner(SystemMaintenanceTaskRegistry registry, IndexManager indexManager, ClusterManager clusterManager, ReIndexJobManager reIndexJobManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(ReIndexMaintenanceTask task)
Execute theSystemMaintenanceTask
.void
register()
void
unregister()
-
-
-
Constructor Detail
-
ReIndexMaintenanceTaskRunner
public ReIndexMaintenanceTaskRunner(SystemMaintenanceTaskRegistry registry, IndexManager indexManager, ClusterManager clusterManager, ReIndexJobManager reIndexJobManager)
-
-
Method Detail
-
register
@PostConstruct public void register()
-
unregister
@PreDestroy public void unregister()
-
execute
public void execute(ReIndexMaintenanceTask task) throws MaintenanceTaskExecutionException
Description copied from interface:SystemMaintenanceTaskRunner
Execute theSystemMaintenanceTask
. If aMaintenanceTaskExecutionException
is thrown during execution, the task will be retried next time theJournalSystemMaintenanceTaskQueue
is flushed. Any other exceptions thrown will cause the task to be skipped.- Specified by:
execute
in interfaceSystemMaintenanceTaskRunner<ReIndexMaintenanceTask>
- Throws:
MaintenanceTaskExecutionException
- if the execution fails but should be retried at a later date
-
-