Class SpaceBackupService
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.backup.AbstractBackupService
-
- com.atlassian.confluence.impl.backuprestore.backup.SpaceBackupService
-
public class SpaceBackupService extends AbstractBackupService
Service responsible for space backup operations.- Since:
- 7.17.0
-
-
Field Summary
Fields Modifier and Type Field Description static int
BACKUP_THREADS_NUMBER
static String
CONFLUENCE_FAST_XML_SPACE_BACKUP_DARK_FEATURE
-
Constructor Summary
Constructors Constructor Description SpaceBackupService(@NotNull ImportExportManager importExportManager, @NotNull SpaceDao spaceDao, @NotNull org.hibernate.SessionFactory sessionFactory, @NotNull com.atlassian.sal.api.features.DarkFeatureManager salDarkFeatureManager, @NotNull org.springframework.transaction.PlatformTransactionManager platformTransactionManager, @NotNull BackupContainerWriterFactory backupContainerWriterFactory, @NotNull SpaceExportersFactory spaceExportersFactory, @NotNull com.atlassian.event.api.EventPublisher eventPublisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BackupRestoreJobResult
doBackupSynchronously(BackupRestoreJob job)
Run the backup process synchronously.-
Methods inherited from class com.atlassian.confluence.impl.backuprestore.backup.AbstractBackupService
validateBackupJob
-
-
-
-
Field Detail
-
CONFLUENCE_FAST_XML_SPACE_BACKUP_DARK_FEATURE
public static final String CONFLUENCE_FAST_XML_SPACE_BACKUP_DARK_FEATURE
- See Also:
- Constant Field Values
-
BACKUP_THREADS_NUMBER
public static final int BACKUP_THREADS_NUMBER
-
-
Constructor Detail
-
SpaceBackupService
public SpaceBackupService(@NotNull @NotNull ImportExportManager importExportManager, @NotNull @NotNull SpaceDao spaceDao, @NotNull @NotNull org.hibernate.SessionFactory sessionFactory, @NotNull @NotNull com.atlassian.sal.api.features.DarkFeatureManager salDarkFeatureManager, @NotNull @NotNull org.springframework.transaction.PlatformTransactionManager platformTransactionManager, @NotNull @NotNull BackupContainerWriterFactory backupContainerWriterFactory, @NotNull @NotNull SpaceExportersFactory spaceExportersFactory, @NotNull @NotNull com.atlassian.event.api.EventPublisher eventPublisher)
- Since:
- 7.20.0
-
-
Method Detail
-
doBackupSynchronously
public BackupRestoreJobResult doBackupSynchronously(BackupRestoreJob job) 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
-
-