Class PageTemplateSiteMigrator
java.lang.Object
com.atlassian.confluence.content.render.xhtml.migration.PageTemplateSiteMigrator
- All Implemented Interfaces:
SiteMigrator
A
SiteMigrator
that manages the migration of Page Templates. It handles
transactional semantics as well as asynchronous processing of the tasks, but delegates
the real work to PageTemplateMigratorTask
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The number of conversion threads that may be running concurrently. -
Constructor Summary
ConstructorsConstructorDescriptionPageTemplateSiteMigrator
(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
Modifier and TypeMethodDescriptionboolean
Migrate the entire site.
-
Field Details
-
NUM_THREADS
public static final int NUM_THREADSThe number of conversion threads that may be running concurrently.- See Also:
-
-
Constructor Details
-
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 Details
-
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
-