Class DefaultSiteMigrator

  • All Implemented Interfaces:
    SiteMigrator, org.springframework.beans.factory.DisposableBean

    public class DefaultSiteMigrator
    extends Object
    implements SiteMigrator, org.springframework.beans.factory.DisposableBean
    • Constructor Detail

      • DefaultSiteMigrator

        public DefaultSiteMigrator​(int numberOfThreads,
                                   org.hibernate.SessionFactory sessionFactory,
                                   org.springframework.transaction.PlatformTransactionManager transactionManager,
                                   ContentDao contentDao,
                                   ExceptionTolerantMigrator migrator,
                                   CacheFlusher cacheFlusher,
                                   BatchableWorkSource<ContentEntityObject> workSource,
                                   String versionCommentProperty,
                                   String defaultVersionCommment,
                                   com.atlassian.scheduler.core.LifecycleAwareSchedulerService lifecycleAwareSchedulerService)
        Since:
        6.1.0
    • Method Detail

      • getNumberOfThreads

        public static int getNumberOfThreads()
      • getBatchSize

        public static int getBatchSize()
      • isSiteMigrationInProgress

        public boolean isSiteMigrationInProgress()
        Specified by:
        isSiteMigrationInProgress in interface SiteMigrator
        Returns:
        if a migration is currently in progress
      • destroy

        public void destroy()
                     throws Exception
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
        Throws:
        Exception