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,
org.quartz.Scheduler scheduler,
ExceptionTolerantMigrator migrator,
PageTemplateDao pageTemplateDao,
PageTemplateManager pageTemplateManager,
com.google.common.base.Predicate<PageTemplate> pageTemplateMigrationSelector)
The size of each batch.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSiteMigrationInProgress() |
ExceptionReport |
migrateSite()
Migrate the entire site.
|
public static final int NUM_THREADS
public PageTemplateSiteMigrator(int numberOfThreads, org.springframework.transaction.PlatformTransactionManager transactionManager, org.quartz.Scheduler scheduler, ExceptionTolerantMigrator migrator, PageTemplateDao pageTemplateDao, PageTemplateManager pageTemplateManager, 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–2015 Atlassian. All rights reserved.