public class CreateIndexSnapshotMaintenanceTaskRunner extends Object implements SystemMaintenanceTaskRunner<CreateIndexSnapshotMaintenanceTask>
Constructor and Description |
---|
CreateIndexSnapshotMaintenanceTaskRunner(ClusterManager clusterManager,
LuceneIndexSnapshotManager snapshotManager,
SystemMaintenanceTaskRegistry registry,
SystemMaintenanceTaskQueue systemMaintenanceTaskQueue,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
void |
execute(CreateIndexSnapshotMaintenanceTask task)
Execute the
SystemMaintenanceTask . |
void |
register() |
void |
unregister() |
public CreateIndexSnapshotMaintenanceTaskRunner(ClusterManager clusterManager, LuceneIndexSnapshotManager snapshotManager, SystemMaintenanceTaskRegistry registry, SystemMaintenanceTaskQueue systemMaintenanceTaskQueue, com.atlassian.event.api.EventPublisher eventPublisher)
@PostConstruct public void register()
@PreDestroy public void unregister()
public void execute(CreateIndexSnapshotMaintenanceTask task) throws MaintenanceTaskExecutionException
SystemMaintenanceTaskRunner
SystemMaintenanceTask
. If a MaintenanceTaskExecutionException
is thrown during
execution, the task will be retried next time the JournalSystemMaintenanceTaskQueue
is flushed. Any other
exceptions thrown will cause the task to be skipped.execute
in interface SystemMaintenanceTaskRunner<CreateIndexSnapshotMaintenanceTask>
MaintenanceTaskExecutionException
- if the execution fails but should be retried at a later dateCopyright © 2003–2021 Atlassian. All rights reserved.