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 TypeMethodDescriptionvoid
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
Run 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:ImportTaskRunner
Run tasks which should be executed before we start processing entities- Specified by:
runPreImportTasks
in interfaceImportTaskRunner
-
runPostImportTasks
public void runPostImportTasks(BackupRestoreJob job, BackupRestoreSettings settings, BackupProperties backupProperties) 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
-
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
-