Class AbstractBackupService
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.backup.AbstractBackupService
-
- Direct Known Subclasses:
SiteBackupService,SpaceBackupService
public abstract class AbstractBackupService extends Object
Abstract class for any site or space backup operations.- Since:
- 7.17.0
-
-
Field Summary
Fields Modifier and Type Field Description protected static intDELETE_TEMP_BACKUPS_OLDER_THAN_HOURS
-
Constructor Summary
Constructors Constructor Description AbstractBackupService()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voiddoBackupSynchronously(BackupRestoreJob job, BackupRestoreSettings settings)Run the backup process synchronously.protected voidvalidateBackupJob(BackupRestoreJob job, BackupRestoreSettings settings, JobScope expectedJobScope)
-
-
-
Method Detail
-
doBackupSynchronously
public abstract void doBackupSynchronously(BackupRestoreJob job, BackupRestoreSettings settings) throws BackupRestoreException, InterruptedException
Run the backup process synchronously. The function either returns the result object with all required information when the backup process finishes or throws an exception (if the backup fails).
-
validateBackupJob
protected void validateBackupJob(BackupRestoreJob job, BackupRestoreSettings settings, JobScope expectedJobScope)
-
-