public class PageTemplateSiteMigrator extends Object implements SiteMigrator
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
.Modifier and Type | Field and Description |
---|---|
static int |
NUM_THREADS
The number of conversion threads that may be running concurrently.
|
Constructor and Description |
---|
PageTemplateSiteMigrator(int numberOfThreads,
org.springframework.transaction.PlatformTransactionManager transactionManager,
ExceptionTolerantMigrator migrator,
PageTemplateDao pageTemplateDao,
PageTemplateManager pageTemplateManager,
com.atlassian.scheduler.core.LifecycleAwareSchedulerService lifecycleAwareSchedulerService,
com.google.common.base.Predicate<PageTemplate> pageTemplateMigrationSelector)
The size of each batch.
|
PageTemplateSiteMigrator(int numberOfThreads,
org.springframework.transaction.PlatformTransactionManager transactionManager,
org.quartz.Scheduler ignored,
ExceptionTolerantMigrator migrator,
PageTemplateDao pageTemplateDao,
PageTemplateManager pageTemplateManager,
com.google.common.base.Predicate<PageTemplate> pageTemplateMigrationSelector)
Deprecated.
since 5.9.0
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSiteMigrationInProgress() |
ExceptionReport |
migrateSite()
Migrate the entire site.
|
public static final int NUM_THREADS
@Deprecated public PageTemplateSiteMigrator(int numberOfThreads, org.springframework.transaction.PlatformTransactionManager transactionManager, org.quartz.Scheduler ignored, ExceptionTolerantMigrator migrator, PageTemplateDao pageTemplateDao, PageTemplateManager pageTemplateManager, com.google.common.base.Predicate<PageTemplate> pageTemplateMigrationSelector)
public PageTemplateSiteMigrator(int numberOfThreads, org.springframework.transaction.PlatformTransactionManager transactionManager, ExceptionTolerantMigrator migrator, PageTemplateDao pageTemplateDao, PageTemplateManager pageTemplateManager, com.atlassian.scheduler.core.LifecycleAwareSchedulerService lifecycleAwareSchedulerService, com.google.common.base.Predicate<PageTemplate> pageTemplateMigrationSelector)
confluence.migration.batch.size
.public ExceptionReport migrateSite() throws MigrationException
SiteMigrator
migrateSite
in interface SiteMigrator
MigrationException
- wrapping any exceptions which occur during the migrationpublic boolean isSiteMigrationInProgress()
isSiteMigrationInProgress
in interface SiteMigrator
Copyright © 2003–2020 Atlassian. All rights reserved.