Class SpaceImportTaskRunner
java.lang.Object
com.atlassian.confluence.impl.backuprestore.restore.taskrunners.SpaceImportTaskRunner
- All Implemented Interfaces:
ImportTaskRunner,AutoCloseable
Service responsible for running all additional tasks that should be executed before and after space restore
- Since:
- 8.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionSpaceImportTaskRunner(PreImportTaskRunner preImportTaskRunner, PostImportTaskRunner postImportTaskRunner) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Runs tasks which should be executed even if restore failsvoidrunPostImportTasks(BackupRestoreJob job, BackupRestoreSettings settings, BackupProperties backupProperties) Run tasks which should be executed after we finish processing entitiesvoidRun tasks which should be executed before we start processing entities
-
Constructor Details
-
SpaceImportTaskRunner
public SpaceImportTaskRunner(PreImportTaskRunner preImportTaskRunner, PostImportTaskRunner postImportTaskRunner)
-
-
Method Details
-
runPreImportTasks
public void runPreImportTasks()Description copied from interface:ImportTaskRunnerRun tasks which should be executed before we start processing entities- Specified by:
runPreImportTasksin interfaceImportTaskRunner
-
runPostImportTasks
public void runPostImportTasks(BackupRestoreJob job, BackupRestoreSettings settings, BackupProperties backupProperties) throws BackupRestoreException Description copied from interface:ImportTaskRunnerRun tasks which should be executed after we finish processing entities- Specified by:
runPostImportTasksin interfaceImportTaskRunner- Parameters:
job- jobbackupProperties- backup properties from exportDescriptor.properties file- Throws:
BackupRestoreException
-
close
public void close()Description copied from interface:ImportTaskRunnerRuns tasks which should be executed even if restore fails- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceImportTaskRunner
-