Class SpaceBackupService
java.lang.Object
com.atlassian.confluence.impl.backuprestore.backup.AbstractBackupService
com.atlassian.confluence.impl.backuprestore.backup.SpaceBackupService
Service responsible for space backup operations.
- Since:
- 7.17.0
-
Field Summary
FieldsFields inherited from class com.atlassian.confluence.impl.backuprestore.backup.AbstractBackupService
DELETE_TEMP_BACKUPS_OLDER_THAN_HOURS
-
Constructor Summary
ConstructorsConstructorDescriptionSpaceBackupService
(@NonNull org.hibernate.SessionFactory sessionFactory, @NonNull org.springframework.transaction.PlatformTransactionManager platformTransactionManager, @NonNull BackupContainerWriterFactory backupContainerWriterFactory, @NonNull SpaceExportersFactory spaceExportersFactory, @NonNull com.atlassian.event.api.EventPublisher eventPublisher, @NonNull ExportableEntityInfoFactory exportableEntityInfoFactory, @NonNull BackupRestoreJobDao backupRestoreJobDao, @NonNull BackupRestoreFilesystemManager backupRestoreFilesystemManager, @NonNull StatisticsCollectorFactory statisticsCollectorFactory, @NonNull ParallelTasksExecutorFactory parallelTasksExecutorFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected JobStatisticsInfo
backupAllEntitiesAndAttachments
(BackupRestoreJob job, BackupRestoreSettings settings, ParallelTasksExecutor parallelTasksExecutor, BackupContainerWriter containerWriter) Backups all entities (including plugin data) and attachments.void
doBackupSynchronously
(BackupRestoreJob job, BackupRestoreSettings settings) Run the backup process synchronously.protected void
validateSpaceBackupJob
(BackupRestoreJob job, BackupRestoreSettings settings) Methods inherited from class com.atlassian.confluence.impl.backuprestore.backup.AbstractBackupService
performBackup, postBackupJobUpdate, validateBackupJob
-
Field Details
-
BACKUP_THREADS_NUMBER
public static final int BACKUP_THREADS_NUMBER
-
-
Constructor Details
-
SpaceBackupService
public SpaceBackupService(@NonNull org.hibernate.SessionFactory sessionFactory, @NonNull org.springframework.transaction.PlatformTransactionManager platformTransactionManager, @NonNull BackupContainerWriterFactory backupContainerWriterFactory, @NonNull SpaceExportersFactory spaceExportersFactory, @NonNull com.atlassian.event.api.EventPublisher eventPublisher, @NonNull ExportableEntityInfoFactory exportableEntityInfoFactory, @NonNull BackupRestoreJobDao backupRestoreJobDao, @NonNull BackupRestoreFilesystemManager backupRestoreFilesystemManager, @NonNull StatisticsCollectorFactory statisticsCollectorFactory, @NonNull ParallelTasksExecutorFactory parallelTasksExecutorFactory) - Since:
- 7.20.0
-
-
Method Details
-
doBackupSynchronously
public 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). At this moment, we call the legacy xml exporter here. This function will be replaced when we get the new backup/restore functionality.- Specified by:
doBackupSynchronously
in classAbstractBackupService
- Throws:
BackupRestoreException
InterruptedException
-
validateSpaceBackupJob
-
backupAllEntitiesAndAttachments
protected JobStatisticsInfo backupAllEntitiesAndAttachments(BackupRestoreJob job, BackupRestoreSettings settings, ParallelTasksExecutor parallelTasksExecutor, BackupContainerWriter containerWriter) throws ExecutionException, InterruptedException, TimeoutException, BackupRestoreException Backups all entities (including plugin data) and attachments. Descriptor properties are not written on this step.- Specified by:
backupAllEntitiesAndAttachments
in classAbstractBackupService
- Returns:
- statistics object.
- Throws:
ExecutionException
InterruptedException
TimeoutException
BackupRestoreException
-