public class DefaultSiteMigrator extends Object implements SiteMigrator, org.springframework.beans.factory.DisposableBean
Modifier and Type | Field and Description |
---|---|
static int |
BATCH_SIZE
Deprecated.
Since 5.3.1 Use
DEFAULT_BATCH_SIZE |
static String |
BATCH_SIZE_PROP |
static int |
DEFAULT_BATCH_SIZE |
static int |
DEFAULT_NUMBER_OF_THREADS |
static String |
DEFAULT_WIKI_MIGRATION_VERSION_COMMENT |
static String |
DEFAULT_XHTML_MIGRATION_VERSION_COMMENT |
static int |
NUM_THREADS
Deprecated.
|
static String |
WIKI_MIGRATION_VERSION_COMMENT_PROP |
static String |
XHTML_MIGRATION_VERSION_COMMENT_PROP |
Constructor and Description |
---|
DefaultSiteMigrator(int numberOfThreads,
org.springframework.transaction.PlatformTransactionManager transactionManager,
ContentDao contentDao,
ExceptionTolerantMigrator migrator,
CacheFlusher cacheFlusher,
BatchableWorkSource<ContentEntityObject> workSource,
String versionCommentProperty,
String defaultVersionCommment,
com.atlassian.scheduler.core.LifecycleAwareSchedulerService lifecycleAwareSchedulerService)
|
DefaultSiteMigrator(int numberOfThreads,
org.springframework.transaction.PlatformTransactionManager transactionManager,
ContentDao contentDao,
ExceptionTolerantMigrator migrator,
com.atlassian.cache.CacheManager cacheManager,
BatchableWorkSource<ContentEntityObject> workSource,
String versionCommentProperty,
String defaultVersionCommment,
IndexFlushScheduler indexFlushScheduler)
|
DefaultSiteMigrator(int numberOfThreads,
org.springframework.transaction.PlatformTransactionManager transactionManager,
ContentDao contentDao,
ExceptionTolerantMigrator migrator,
com.atlassian.cache.CacheManager cacheManager,
BatchableWorkSource<ContentEntityObject> workSource,
String versionCommentProperty,
String defaultVersionCommment,
com.atlassian.scheduler.core.LifecycleAwareSchedulerService lifecycleAwareSchedulerService)
|
DefaultSiteMigrator(int numberOfThreads,
org.springframework.transaction.PlatformTransactionManager transactionManager,
org.quartz.Scheduler ignoredScheduler,
ContentDao contentDao,
ExceptionTolerantMigrator migrator,
com.atlassian.cache.CacheManager cacheManager,
BatchableWorkSource<ContentEntityObject> workSource,
String versionCommentProperty,
String defaultVersionCommment)
Deprecated.
since 5.9.0
|
DefaultSiteMigrator(int numberOfThreads,
org.hibernate.SessionFactory sessionFactory,
org.springframework.transaction.PlatformTransactionManager transactionManager,
ContentDao contentDao,
ExceptionTolerantMigrator migrator,
CacheFlusher cacheFlusher,
BatchableWorkSource<ContentEntityObject> workSource,
String versionCommentProperty,
String defaultVersionCommment,
com.atlassian.scheduler.core.LifecycleAwareSchedulerService lifecycleAwareSchedulerService) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
static int |
getBatchSize() |
static int |
getNumberOfThreads() |
static int |
getNumberOfThreads(com.atlassian.config.db.HibernateConfig hibernateConfig)
Deprecated.
Since 5.8.11
|
boolean |
isSiteMigrationInProgress() |
ExceptionReport |
migrateSite()
Migrate the entire site.
|
public static final int DEFAULT_NUMBER_OF_THREADS
public static final int DEFAULT_BATCH_SIZE
@Deprecated public static final int NUM_THREADS
DEFAULT_NUMBER_OF_THREADS
public static final String BATCH_SIZE_PROP
public static final String WIKI_MIGRATION_VERSION_COMMENT_PROP
public static final String DEFAULT_WIKI_MIGRATION_VERSION_COMMENT
public static final String XHTML_MIGRATION_VERSION_COMMENT_PROP
public static final String DEFAULT_XHTML_MIGRATION_VERSION_COMMENT
@Deprecated public static final int BATCH_SIZE
DEFAULT_BATCH_SIZE
confluence.wiki.migration.batch.size
.@Deprecated public DefaultSiteMigrator(int numberOfThreads, org.springframework.transaction.PlatformTransactionManager transactionManager, org.quartz.Scheduler ignoredScheduler, ContentDao contentDao, ExceptionTolerantMigrator migrator, com.atlassian.cache.CacheManager cacheManager, BatchableWorkSource<ContentEntityObject> workSource, String versionCommentProperty, String defaultVersionCommment)
@Deprecated public DefaultSiteMigrator(int numberOfThreads, org.springframework.transaction.PlatformTransactionManager transactionManager, ContentDao contentDao, ExceptionTolerantMigrator migrator, com.atlassian.cache.CacheManager cacheManager, BatchableWorkSource<ContentEntityObject> workSource, String versionCommentProperty, String defaultVersionCommment, IndexFlushScheduler indexFlushScheduler)
DefaultSiteMigrator(int, PlatformTransactionManager, ContentDao, ExceptionTolerantMigrator, CacheFlusher, BatchableWorkSource, String, String, LifecycleAwareSchedulerService)
@Deprecated public DefaultSiteMigrator(int numberOfThreads, org.springframework.transaction.PlatformTransactionManager transactionManager, ContentDao contentDao, ExceptionTolerantMigrator migrator, com.atlassian.cache.CacheManager cacheManager, BatchableWorkSource<ContentEntityObject> workSource, String versionCommentProperty, String defaultVersionCommment, com.atlassian.scheduler.core.LifecycleAwareSchedulerService lifecycleAwareSchedulerService)
DefaultSiteMigrator(int, PlatformTransactionManager, ContentDao, ExceptionTolerantMigrator, CacheFlusher, BatchableWorkSource, String, String, LifecycleAwareSchedulerService)
@Deprecated public DefaultSiteMigrator(int numberOfThreads, org.springframework.transaction.PlatformTransactionManager transactionManager, ContentDao contentDao, ExceptionTolerantMigrator migrator, CacheFlusher cacheFlusher, BatchableWorkSource<ContentEntityObject> workSource, String versionCommentProperty, String defaultVersionCommment, com.atlassian.scheduler.core.LifecycleAwareSchedulerService lifecycleAwareSchedulerService)
public DefaultSiteMigrator(int numberOfThreads, org.hibernate.SessionFactory sessionFactory, org.springframework.transaction.PlatformTransactionManager transactionManager, ContentDao contentDao, ExceptionTolerantMigrator migrator, CacheFlusher cacheFlusher, BatchableWorkSource<ContentEntityObject> workSource, String versionCommentProperty, String defaultVersionCommment, com.atlassian.scheduler.core.LifecycleAwareSchedulerService lifecycleAwareSchedulerService)
@Deprecated public static int getNumberOfThreads(com.atlassian.config.db.HibernateConfig hibernateConfig)
public static int getNumberOfThreads()
public static int getBatchSize()
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–2017 Atlassian. All rights reserved.