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 TypeMethodDescriptiondefault void
close()
Runs tasks which should be executed even if restore failsdefault void
runPostImportTasks
(BackupRestoreSettings settings, BackupProperties backupProperties) Run tasks which should be executed after we finish processing entitiesdefault void
Run tasks which should be executed before we start processing entities
-
Method Details
-
runPreImportTasks
Run tasks which should be executed before we start processing entities -
runPostImportTasks
default void runPostImportTasks(BackupRestoreSettings settings, BackupProperties backupProperties) throws BackupRestoreException Run tasks which should be executed after we finish processing entities- Parameters:
backupProperties
- backup properties from exportDescriptor.properties file- Throws:
BackupRestoreException
-
close
default void close()Runs tasks which should be executed even if restore fails- Specified by:
close
in interfaceAutoCloseable
-