Class SiteBackupService
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.backup.AbstractBackupService
-
- com.atlassian.confluence.impl.backuprestore.backup.SiteBackupService
-
public class SiteBackupService extends AbstractBackupService
Service responsible for site backup operations.- Since:
- 7.17.0
-
-
Field Summary
Fields Modifier and Type Field Description static int
BACKUP_THREADS_NUMBER
-
Fields inherited from class com.atlassian.confluence.impl.backuprestore.backup.AbstractBackupService
DELETE_TEMP_BACKUPS_OLDER_THAN_HOURS
-
-
Constructor Summary
Constructors Constructor Description SiteBackupService(org.hibernate.SessionFactory sessionFactory, org.springframework.transaction.PlatformTransactionManager platformTransactionManager, BackupContainerWriterFactory backupContainerWriterFactory, BackupRestoreProviderManager backupRestoreProviderManager, com.atlassian.event.api.EventPublisher eventPublisher, ExportableEntityInfoFactory exportableEntityInfoFactory, BackupRestoreJobDao backupRestoreJobDao, BackupRestoreFilesystemManager backupRestoreFilesystemManager, StatisticsCollectorFactory statisticsCollectorFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doBackupSynchronously(BackupRestoreJob job, BackupRestoreSettings settings)
Run the backup process synchronously.protected void
writePluginData(BackupContainerWriter containerWriter, DatabaseExporterHelper databaseExporterHelper)
-
Methods inherited from class com.atlassian.confluence.impl.backuprestore.backup.AbstractBackupService
validateBackupJob
-
-
-
-
Constructor Detail
-
SiteBackupService
public SiteBackupService(org.hibernate.SessionFactory sessionFactory, org.springframework.transaction.PlatformTransactionManager platformTransactionManager, BackupContainerWriterFactory backupContainerWriterFactory, BackupRestoreProviderManager backupRestoreProviderManager, com.atlassian.event.api.EventPublisher eventPublisher, ExportableEntityInfoFactory exportableEntityInfoFactory, BackupRestoreJobDao backupRestoreJobDao, BackupRestoreFilesystemManager backupRestoreFilesystemManager, StatisticsCollectorFactory statisticsCollectorFactory)
-
-
Method Detail
-
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
-
writePluginData
protected void writePluginData(BackupContainerWriter containerWriter, DatabaseExporterHelper databaseExporterHelper)
-
-