Interface ImportTaskRunner
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
SiteImportTaskRunner,SpaceImportTaskRunner
Service responsible for running all additional tasks that should be executed before and after restore.
Extends
AutoCloseable because there are some tasks which should be executed even when restore fails.- Since:
- 8.2.0
-
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
-
Method Details
-
runPreImportTasks
Run tasks which should be executed before we start processing entities- Throws:
BackupRestoreException
-
runPostImportTasks
void runPostImportTasks(BackupRestoreJob job, BackupRestoreSettings settings, BackupProperties backupProperties) throws BackupRestoreException Run tasks which should be executed after we finish processing entities- Parameters:
job- jobjob- jobSettings settingsbackupProperties- backup properties from exportDescriptor.properties file- Throws:
BackupRestoreException
-
close
void close()Runs tasks which should be executed even if restore fails- Specified by:
closein interfaceAutoCloseable
-