Class SpaceImportTaskRunner
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.restore.taskrunners.SpaceImportTaskRunner
-
- All Implemented Interfaces:
ImportTaskRunner
,AutoCloseable
public class SpaceImportTaskRunner extends Object implements ImportTaskRunner
Service responsible for running all additional tasks that should be executed before and after space restore- Since:
- 8.2.0
-
-
Constructor Summary
Constructors Constructor Description SpaceImportTaskRunner(PreImportTaskRunner preImportTaskRunner, PostImportTaskRunner postImportTaskRunner)
-
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
-
SpaceImportTaskRunner
public SpaceImportTaskRunner(PreImportTaskRunner preImportTaskRunner, PostImportTaskRunner postImportTaskRunner)
-
-
Method Detail
-
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
-
-