public class SnapshotCreatedMaintenanceTaskRunner extends Object implements SystemMaintenanceTaskRunner<SnapshotCreatedMaintenanceTask>
Constructor and Description |
---|
SnapshotCreatedMaintenanceTaskRunner(SystemMaintenanceTaskRegistry registry,
LuceneIndexSnapshotManager luceneIndexSnapshotManager,
ClusterManager clusterManager,
com.atlassian.beehive.ClusterLockService clusterLockService,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
void |
execute(SnapshotCreatedMaintenanceTask task)
Execute the
SystemMaintenanceTask . |
void |
register() |
void |
unregister() |
public SnapshotCreatedMaintenanceTaskRunner(SystemMaintenanceTaskRegistry registry, LuceneIndexSnapshotManager luceneIndexSnapshotManager, ClusterManager clusterManager, com.atlassian.beehive.ClusterLockService clusterLockService, com.atlassian.event.api.EventPublisher eventPublisher)
@PostConstruct public void register()
@PreDestroy public void unregister()
public void execute(SnapshotCreatedMaintenanceTask 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<SnapshotCreatedMaintenanceTask>
MaintenanceTaskExecutionException
- if the execution fails but should be retried at a later dateCopyright © 2003–2020 Atlassian. All rights reserved.