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
-
-
Field Summary
Fields Modifier and Type Field Description static StringBATCH_SIZE_PROPstatic intDEFAULT_BATCH_SIZEstatic intDEFAULT_NUMBER_OF_THREADSstatic StringDEFAULT_WIKI_MIGRATION_VERSION_COMMENTstatic StringDEFAULT_XHTML_MIGRATION_VERSION_COMMENTstatic StringWIKI_MIGRATION_VERSION_COMMENT_PROPstatic StringXHTML_MIGRATION_VERSION_COMMENT_PROP
-
Constructor Summary
Constructors Constructor Description 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()static intgetBatchSize()static intgetNumberOfThreads()booleanisSiteMigrationInProgress()ExceptionReportmigrateSite()Migrate the entire site.
-
-
-
Field Detail
-
DEFAULT_NUMBER_OF_THREADS
public static final int DEFAULT_NUMBER_OF_THREADS
- See Also:
- Constant Field Values
-
DEFAULT_BATCH_SIZE
public static final int DEFAULT_BATCH_SIZE
- See Also:
- Constant Field Values
-
BATCH_SIZE_PROP
public static final String BATCH_SIZE_PROP
- See Also:
- Constant Field Values
-
WIKI_MIGRATION_VERSION_COMMENT_PROP
public static final String WIKI_MIGRATION_VERSION_COMMENT_PROP
- See Also:
- Constant Field Values
-
DEFAULT_WIKI_MIGRATION_VERSION_COMMENT
public static final String DEFAULT_WIKI_MIGRATION_VERSION_COMMENT
- See Also:
- Constant Field Values
-
XHTML_MIGRATION_VERSION_COMMENT_PROP
public static final String XHTML_MIGRATION_VERSION_COMMENT_PROP
- See Also:
- Constant Field Values
-
DEFAULT_XHTML_MIGRATION_VERSION_COMMENT
public static final String DEFAULT_XHTML_MIGRATION_VERSION_COMMENT
- See Also:
- Constant Field Values
-
-
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()
-
migrateSite
public ExceptionReport migrateSite() throws MigrationException
Description copied from interface:SiteMigratorMigrate the entire site. Only one migration can be in progress at any time.- Specified by:
migrateSitein interfaceSiteMigrator- Throws:
MigrationException- wrapping any exceptions which occur during the migration
-
isSiteMigrationInProgress
public boolean isSiteMigrationInProgress()
- Specified by:
isSiteMigrationInProgressin interfaceSiteMigrator- Returns:
- if a migration is currently in progress
-
-