public class AtlassianSchedulerBackupScheduler extends Object implements BackupScheduler
BackupScheduler
Modifier and Type | Field and Description |
---|---|
static com.atlassian.scheduler.config.JobId |
JOB_ID |
static com.atlassian.scheduler.config.JobRunnerKey |
JOB_RUNNER_KEY |
Constructor and Description |
---|
AtlassianSchedulerBackupScheduler(com.atlassian.scheduler.SchedulerService schedulerService,
PropertyManager propertyManager,
BackupManager backupManager,
com.atlassian.event.api.EventPublisher eventPublisher,
BackupFileStore backupFileStore) |
Modifier and Type | Method and Description |
---|---|
void |
disable()
Disable automated backups.
|
void |
enable()
Enable automated backups.
|
boolean |
isEnabled()
Return whether automated backup is enabled
|
void |
onApplicationReady(ApplicationReadyEvent applicationReadyEvent) |
void |
onXMLRestore(XMLRestoreFinishedEvent restoreFinishedEvent) |
void |
registerListener() |
void |
reschedule(BackupConfiguration backupConfiguration)
Reschedules automated backups job by given configuration
|
protected void |
scheduleJob(int hour,
int minute) |
void |
unregisterListener() |
public static final com.atlassian.scheduler.config.JobId JOB_ID
public static final com.atlassian.scheduler.config.JobRunnerKey JOB_RUNNER_KEY
public AtlassianSchedulerBackupScheduler(com.atlassian.scheduler.SchedulerService schedulerService, PropertyManager propertyManager, BackupManager backupManager, com.atlassian.event.api.EventPublisher eventPublisher, BackupFileStore backupFileStore)
@PostConstruct public void registerListener()
@PreDestroy public void unregisterListener()
@EventListener public void onApplicationReady(ApplicationReadyEvent applicationReadyEvent)
@EventListener public void onXMLRestore(XMLRestoreFinishedEvent restoreFinishedEvent)
public boolean isEnabled()
BackupScheduler
isEnabled
in interface BackupScheduler
public void enable() throws ScheduledBackupException
BackupScheduler
enable
in interface BackupScheduler
ScheduledBackupException
- if there was a problem scheduling the automated backup jobpublic void disable() throws ScheduledBackupException
BackupScheduler
disable
in interface BackupScheduler
ScheduledBackupException
- if there was a problem scheduling the automated backup jobpublic void reschedule(BackupConfiguration backupConfiguration) throws ScheduledBackupException
BackupScheduler
reschedule
in interface BackupScheduler
backupConfiguration
- Backup configuration used to rescheduled jobScheduledBackupException
- if there was a problem rescheduling the automated backup jobprotected void scheduleJob(int hour, int minute) throws com.atlassian.scheduler.SchedulerServiceException
com.atlassian.scheduler.SchedulerServiceException
Copyright © 2021 Atlassian. All rights reserved.
View cookie preferences