Class SiteImportTaskRunner
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.restore.taskrunners.SiteImportTaskRunner
-
- All Implemented Interfaces:
ImportTaskRunner
,AutoCloseable
public class SiteImportTaskRunner extends Object implements ImportTaskRunner
Service responsible for running all additional tasks that should be executed before and after site restore- Since:
- 8.2.0
-
-
Constructor Summary
Constructors Constructor Description SiteImportTaskRunner(PreImportTaskRunner preImportTaskRunner, PostImportTaskRunner postImportTaskRunner, BackupRestoreJob job, BackupRestoreSettings settings, HiLoGeneratorInitialiserOnSiteRestore hiLoGeneratorInitialiserOnSiteRestore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Runs tasks which should be executed even if restore failsvoid
runPostImportTasks(BackupRestoreJob job, BackupRestoreSettings settings, BackupProperties backupProperties)
Run tasks which should be executed after we finish processing entitiesvoid
runPreImportTasks()
Run tasks which should be executed before we start processing entities
-
-
-
Constructor Detail
-
SiteImportTaskRunner
public SiteImportTaskRunner(PreImportTaskRunner preImportTaskRunner, PostImportTaskRunner postImportTaskRunner, BackupRestoreJob job, BackupRestoreSettings settings, HiLoGeneratorInitialiserOnSiteRestore hiLoGeneratorInitialiserOnSiteRestore)
-
-
Method Detail
-
runPreImportTasks
public void runPreImportTasks() throws BackupRestoreException
Description copied from interface:ImportTaskRunner
Run tasks which should be executed before we start processing entities- Specified by:
runPreImportTasks
in interfaceImportTaskRunner
- Throws:
BackupRestoreException
-
runPostImportTasks
public void runPostImportTasks(BackupRestoreJob job, BackupRestoreSettings settings, BackupProperties backupProperties) throws BackupRestoreException
Description copied from interface:ImportTaskRunner
Run tasks which should be executed after we finish processing entities- Specified by:
runPostImportTasks
in interfaceImportTaskRunner
- Parameters:
job
- jobbackupProperties
- backup properties from exportDescriptor.properties file- Throws:
BackupRestoreException
-
close
public void close()
Description copied from interface:ImportTaskRunner
Runs tasks which should be executed even if restore fails- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceImportTaskRunner
-
-