java.lang.Object
com.atlassian.confluence.impl.backuprestore.restore.taskrunners.PreImportTaskRunner

public class PreImportTaskRunner extends Object
Runs all pre-import tasks. It executes the same tasks as configured in BackupImporter.
Since:
8.2.0
  • Constructor Details

  • Method Details

    • unIndexAll

      public void unIndexAll()
      Delete search index
    • pauseSchedulerAndFlushJobs

      public void pauseSchedulerAndFlushJobs() throws BackupRestoreException
      Pause cluster scheduler
      Throws:
      BackupRestoreException
    • resumeScheduler

      public void resumeScheduler()
      Resume scheduler. This task should run even if restore have failed.
    • deleteAllDatabaseContent

      public void deleteAllDatabaseContent()
      Drop existing database
    • runDatabaseConstraintsTask

      public void runDatabaseConstraintsTask()
      Creates constraints that SchemaExport cannot automatically generate from hibernate mapping files
    • createAllLockRecordsIfTheyDoNotExist

      public void createAllLockRecordsIfTheyDoNotExist() throws BackupRestoreException, InterruptedException
      Throws:
      BackupRestoreException
      InterruptedException
    • flushCaches

      public void flushCaches()
      Flush all caches
    • flushCommitClearSession

      public void flushCommitClearSession()
      Flush and commit session.
    • disablePlugins

      public void disablePlugins()
      Disable interfering plugins
    • enablePlugins

      public void enablePlugins()
      Enable interfering plugins after restore finished. Should be called even if restore fails
    • getPluginKeys

      public static List<String> getPluginKeys()