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 static int
DELETE_TEMP_BACKUPS_OLDER_THAN_HOURS
-
Constructor Summary
Constructors Constructor Description AbstractBackupService(BackupRestoreJobDao backupRestoreJobDao)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract JobStatisticsInfo
backupAllEntitiesAndAttachments(BackupRestoreJob job, BackupRestoreSettings settings, ParallelTasksExecutor parallelTasksExecutor, BackupContainerWriter containerWriter)
abstract void
doBackupSynchronously(BackupRestoreJob job, BackupRestoreSettings settings)
Run the backup process synchronously.protected File
performBackup(BackupRestoreJob job, BackupRestoreSettings settings, ParallelTasksExecutor parallelTasksExecutor, BackupContainerWriter containerWriter)
protected BackupRestoreJob
postBackupJobUpdate(String newFileName, BackupRestoreSettings settings, long jobId, ParallelTasksExecutor parallelTasksExecutor)
protected void
validateBackupJob(BackupRestoreJob job, BackupRestoreSettings settings, JobScope expectedJobScope)
-
-
-
Constructor Detail
-
AbstractBackupService
public AbstractBackupService(BackupRestoreJobDao backupRestoreJobDao)
-
-
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)
-
performBackup
protected File performBackup(BackupRestoreJob job, BackupRestoreSettings settings, ParallelTasksExecutor parallelTasksExecutor, BackupContainerWriter containerWriter) throws ExecutionException, InterruptedException, TimeoutException, BackupRestoreException
-
backupAllEntitiesAndAttachments
protected abstract JobStatisticsInfo backupAllEntitiesAndAttachments(BackupRestoreJob job, BackupRestoreSettings settings, ParallelTasksExecutor parallelTasksExecutor, BackupContainerWriter containerWriter) throws ExecutionException, InterruptedException, TimeoutException, BackupRestoreException
-
postBackupJobUpdate
protected BackupRestoreJob postBackupJobUpdate(String newFileName, BackupRestoreSettings settings, long jobId, ParallelTasksExecutor parallelTasksExecutor) throws ExecutionException, InterruptedException
-
-