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()
BackupSchedulerisEnabled in interface BackupSchedulerpublic void enable()
throws ScheduledBackupException
BackupSchedulerenable in interface BackupSchedulerScheduledBackupException - if there was a problem scheduling the automated backup jobpublic void disable()
throws ScheduledBackupException
BackupSchedulerdisable in interface BackupSchedulerScheduledBackupException - if there was a problem scheduling the automated backup jobpublic void reschedule(BackupConfiguration backupConfiguration) throws ScheduledBackupException
BackupSchedulerreschedule in interface BackupSchedulerbackupConfiguration - 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.SchedulerServiceExceptionCopyright © 2020 Atlassian. All rights reserved.