Interface ImportTaskRunner
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
SiteImportTaskRunner
,SpaceImportTaskRunner
public interface ImportTaskRunner extends AutoCloseable
Service responsible for running all additional tasks that should be executed before and after restore. ExtendsAutoCloseable
because there are some tasks which should be executed even when restore fails.- Since:
- 8.2.0
-
-
Method Summary
All Methods Instance Methods Abstract 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
-
-
-
Method Detail
-
runPreImportTasks
void runPreImportTasks() throws BackupRestoreException
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:
close
in interfaceAutoCloseable
-
-