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 String
BATCH_SIZE_PROP
static int
DEFAULT_BATCH_SIZE
static int
DEFAULT_NUMBER_OF_THREADS
static String
DEFAULT_WIKI_MIGRATION_VERSION_COMMENT
static String
DEFAULT_XHTML_MIGRATION_VERSION_COMMENT
static String
WIKI_MIGRATION_VERSION_COMMENT_PROP
static String
XHTML_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 void
destroy()
static int
getBatchSize()
static int
getNumberOfThreads()
boolean
isSiteMigrationInProgress()
ExceptionReport
migrateSite()
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: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
-
-