Class PageTemplateSiteMigrator
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.migration.PageTemplateSiteMigrator
-
- All Implemented Interfaces:
SiteMigrator
public class PageTemplateSiteMigrator extends Object implements SiteMigrator
ASiteMigrator
that manages the migration of Page Templates. It handles transactional semantics as well as asynchronous processing of the tasks, but delegates the real work toPageTemplateMigratorTask
.
-
-
Field Summary
Fields Modifier and Type Field Description static int
NUM_THREADS
The number of conversion threads that may be running concurrently.
-
Constructor Summary
Constructors Constructor Description PageTemplateSiteMigrator(int numberOfThreads, org.springframework.transaction.PlatformTransactionManager transactionManager, ExceptionTolerantMigrator migrator, PageTemplateDao pageTemplateDao, PageTemplateManager pageTemplateManager, com.atlassian.scheduler.core.LifecycleAwareSchedulerService lifecycleAwareSchedulerService, Predicate<PageTemplate> pageTemplateMigrationSelector)
The size of each batch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSiteMigrationInProgress()
ExceptionReport
migrateSite()
Migrate the entire site.
-
-
-
Field Detail
-
NUM_THREADS
public static final int NUM_THREADS
The number of conversion threads that may be running concurrently.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PageTemplateSiteMigrator
public PageTemplateSiteMigrator(int numberOfThreads, org.springframework.transaction.PlatformTransactionManager transactionManager, ExceptionTolerantMigrator migrator, PageTemplateDao pageTemplateDao, PageTemplateManager pageTemplateManager, com.atlassian.scheduler.core.LifecycleAwareSchedulerService lifecycleAwareSchedulerService, Predicate<PageTemplate> pageTemplateMigrationSelector)
The size of each batch. Configurable through system propertyconfluence.migration.batch.size
.- Since:
- 5.9.0
-
-
Method Detail
-
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
-
-