Class CreateIndexSnapshotMaintenanceTaskRunner
- java.lang.Object
-
- com.atlassian.confluence.impl.system.runner.CreateIndexSnapshotMaintenanceTaskRunner
-
- All Implemented Interfaces:
SystemMaintenanceTaskRunner<CreateIndexSnapshotMaintenanceTask>
public class CreateIndexSnapshotMaintenanceTaskRunner extends Object implements SystemMaintenanceTaskRunner<CreateIndexSnapshotMaintenanceTask>
Create an index snapshot after a full reindex in DC. This snapshot will then be propagated to other nodes- Since:
- 7.7.0
-
-
Constructor Summary
Constructors Constructor Description CreateIndexSnapshotMaintenanceTaskRunner(ClusterManager clusterManager, LuceneIndexSnapshotManager snapshotManager, SystemMaintenanceTaskRegistry registry, SystemMaintenanceTaskQueue systemMaintenanceTaskQueue, com.atlassian.event.api.EventPublisher eventPublisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(CreateIndexSnapshotMaintenanceTask task)
Execute theSystemMaintenanceTask
.void
register()
void
unregister()
-
-
-
Constructor Detail
-
CreateIndexSnapshotMaintenanceTaskRunner
public CreateIndexSnapshotMaintenanceTaskRunner(ClusterManager clusterManager, LuceneIndexSnapshotManager snapshotManager, SystemMaintenanceTaskRegistry registry, SystemMaintenanceTaskQueue systemMaintenanceTaskQueue, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Detail
-
register
@PostConstruct public void register()
-
unregister
@PreDestroy public void unregister()
-
execute
public void execute(CreateIndexSnapshotMaintenanceTask 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<CreateIndexSnapshotMaintenanceTask>
- Throws:
MaintenanceTaskExecutionException
- if the execution fails but should be retried at a later date
-
-