com.atlassian.confluence.content.render.xhtml.migration
Class DefaultWikiToXhtmlSiteMigrator

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.migration.DefaultWikiToXhtmlSiteMigrator
All Implemented Interfaces:
WikiToXhtmlSiteMigrator

public class DefaultWikiToXhtmlSiteMigrator
extends Object
implements WikiToXhtmlSiteMigrator


Field Summary
static int BATCH_SIZE
          The size of each batch.
static int NUM_THREADS
          The number of conversion threads that may be running concurrently.
 
Constructor Summary
DefaultWikiToXhtmlSiteMigrator(int batchSize, int numberOfThreads, org.springframework.transaction.PlatformTransactionManager transactionManager, org.quartz.Scheduler scheduler, ContentDao contentDao, ExceptionTolerantMigrator migrator, PageTemplateDao pageTemplateDao, SettingsManager settingsManager, com.atlassian.cache.CacheManager cacheManager)
           
 
Method Summary
 boolean isSiteMigrationInProgress()
           
 ExceptionReport migrateSite()
          Migrate the entire site from wiki to Xhtml storage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

BATCH_SIZE

public static final int BATCH_SIZE
The size of each batch. Configurable through system property confluence.migration.batch.size.

See Also:
Constant Field Values
Constructor Detail

DefaultWikiToXhtmlSiteMigrator

public DefaultWikiToXhtmlSiteMigrator(int batchSize,
                                      int numberOfThreads,
                                      org.springframework.transaction.PlatformTransactionManager transactionManager,
                                      org.quartz.Scheduler scheduler,
                                      ContentDao contentDao,
                                      ExceptionTolerantMigrator migrator,
                                      PageTemplateDao pageTemplateDao,
                                      SettingsManager settingsManager,
                                      com.atlassian.cache.CacheManager cacheManager)
Method Detail

migrateSite

public ExceptionReport migrateSite()
                            throws MigrationException
Description copied from interface: WikiToXhtmlSiteMigrator
Migrate the entire site from wiki to Xhtml storage. Only one migration can be in progress at any time.

Specified by:
migrateSite in interface WikiToXhtmlSiteMigrator
Throws:
MigrationException - wrapping any exceptions which occur during the migration

isSiteMigrationInProgress

public boolean isSiteMigrationInProgress()
Specified by:
isSiteMigrationInProgress in interface WikiToXhtmlSiteMigrator
Returns:
if a migration is currently in progress


Copyright © 2003-2013 Atlassian. All Rights Reserved.