Class DefaultSiteMigrator
java.lang.Object
com.atlassian.confluence.content.render.xhtml.migration.DefaultSiteMigrator
- All Implemented Interfaces:
SiteMigrator
,org.springframework.beans.factory.DisposableBean
public class DefaultSiteMigrator
extends Object
implements SiteMigrator, org.springframework.beans.factory.DisposableBean
-
Constructor Summary
ConstructorDescriptionDefaultSiteMigrator
(int numberOfThreads, org.hibernate.SessionFactory sessionFactory, org.springframework.transaction.PlatformTransactionManager transactionManager, ContentEntityObjectDao contentDao, ExceptionTolerantMigrator migrator, CacheFlusher cacheFlusher, BatchableWorkSource<ContentEntityObject> workSource, String versionCommentProperty, String defaultVersionCommment, com.atlassian.scheduler.core.LifecycleAwareSchedulerService lifecycleAwareSchedulerService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
static int
static int
boolean
Migrate the entire site.
-
Constructor Details
-
DefaultSiteMigrator
public DefaultSiteMigrator(int numberOfThreads, org.hibernate.SessionFactory sessionFactory, org.springframework.transaction.PlatformTransactionManager transactionManager, ContentEntityObjectDao contentDao, ExceptionTolerantMigrator migrator, CacheFlusher cacheFlusher, BatchableWorkSource<ContentEntityObject> workSource, String versionCommentProperty, String defaultVersionCommment, com.atlassian.scheduler.core.LifecycleAwareSchedulerService lifecycleAwareSchedulerService) - Since:
- 6.1.0
-
-
Method Details
-
getNumberOfThreads
public static int getNumberOfThreads() -
getBatchSize
public static int getBatchSize() -
migrateSite
Description copied from interface:SiteMigrator
Migrate the entire site. Only one migration can be in progress at any time.- Specified by:
migrateSite
in interfaceSiteMigrator
- Throws:
MigrationException
- wrapping any exceptions which occur during the migration
-
isSiteMigrationInProgress
public boolean isSiteMigrationInProgress()- Specified by:
isSiteMigrationInProgress
in interfaceSiteMigrator
- Returns:
- if a migration is currently in progress
-
destroy
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
Exception
-