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

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.migration.DefaultSiteMigrator
All Implemented Interfaces:
SiteMigrator, org.springframework.beans.factory.DisposableBean

public class DefaultSiteMigrator
extends java.lang.Object
implements SiteMigrator, org.springframework.beans.factory.DisposableBean


Field Summary
static int BATCH_SIZE
          Deprecated. Since 5.3.1 Use DEFAULT_BATCH_SIZE
static java.lang.String BATCH_SIZE_PROP
           
static int DEFAULT_BATCH_SIZE
           
static int DEFAULT_NUMBER_OF_THREADS
           
static java.lang.String DEFAULT_WIKI_MIGRATION_VERSION_COMMENT
           
static java.lang.String DEFAULT_XHTML_MIGRATION_VERSION_COMMENT
           
static int NUM_THREADS
          Deprecated. Use DEFAULT_NUMBER_OF_THREADS
static java.lang.String WIKI_MIGRATION_VERSION_COMMENT_PROP
           
static java.lang.String XHTML_MIGRATION_VERSION_COMMENT_PROP
           
 
Constructor Summary
DefaultSiteMigrator(int numberOfThreads, org.springframework.transaction.PlatformTransactionManager transactionManager, org.quartz.Scheduler scheduler, ContentDao contentDao, ExceptionTolerantMigrator migrator, com.atlassian.cache.CacheManager cacheManager, BatchableWorkSource<ContentEntityObject> workSource, java.lang.String versionCommentProperty, java.lang.String defaultVersionCommment)
           
 
Method Summary
 void destroy()
           
static int getBatchSize()
           
static int getNumberOfThreads(com.atlassian.config.db.HibernateConfig hibernateConfig)
           
 boolean isSiteMigrationInProgress()
           
 ExceptionReport migrateSite()
          Migrate the entire site.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NUMBER_OF_THREADS

public static final int DEFAULT_NUMBER_OF_THREADS
See Also:
Constant Field Values

DEFAULT_BATCH_SIZE

public static final int DEFAULT_BATCH_SIZE
See Also:
Constant Field Values

NUM_THREADS

@Deprecated
public static final int NUM_THREADS
Deprecated. Use DEFAULT_NUMBER_OF_THREADS
The number of conversion threads that may be running concurrently.

See Also:
Constant Field Values

BATCH_SIZE_PROP

public static final java.lang.String BATCH_SIZE_PROP
See Also:
Constant Field Values

WIKI_MIGRATION_VERSION_COMMENT_PROP

public static final java.lang.String WIKI_MIGRATION_VERSION_COMMENT_PROP
See Also:
Constant Field Values

DEFAULT_WIKI_MIGRATION_VERSION_COMMENT

public static final java.lang.String DEFAULT_WIKI_MIGRATION_VERSION_COMMENT
See Also:
Constant Field Values

XHTML_MIGRATION_VERSION_COMMENT_PROP

public static final java.lang.String XHTML_MIGRATION_VERSION_COMMENT_PROP
See Also:
Constant Field Values

DEFAULT_XHTML_MIGRATION_VERSION_COMMENT

public static final java.lang.String DEFAULT_XHTML_MIGRATION_VERSION_COMMENT
See Also:
Constant Field Values

BATCH_SIZE

@Deprecated
public static final int BATCH_SIZE
Deprecated. Since 5.3.1 Use DEFAULT_BATCH_SIZE
The size of each batch. Configurable through system property confluence.wiki.migration.batch.size.

See Also:
Constant Field Values
Constructor Detail

DefaultSiteMigrator

public DefaultSiteMigrator(int numberOfThreads,
                           org.springframework.transaction.PlatformTransactionManager transactionManager,
                           org.quartz.Scheduler scheduler,
                           ContentDao contentDao,
                           ExceptionTolerantMigrator migrator,
                           com.atlassian.cache.CacheManager cacheManager,
                           BatchableWorkSource<ContentEntityObject> workSource,
                           java.lang.String versionCommentProperty,
                           java.lang.String defaultVersionCommment)
Method Detail

getNumberOfThreads

public static int getNumberOfThreads(com.atlassian.config.db.HibernateConfig hibernateConfig)

getBatchSize

public static int getBatchSize()

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 interface SiteMigrator
Throws:
MigrationException - wrapping any exceptions which occur during the migration

isSiteMigrationInProgress

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

destroy

public void destroy()
             throws java.lang.Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
java.lang.Exception


Copyright © 2003-2014 Atlassian. All Rights Reserved.