com.atlassian.confluence.content.render.xhtml.migration.tasks
Class ContentEntityMigrationTaskWrapper

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.migration.tasks.ContentEntityMigrationTaskWrapper
All Implemented Interfaces:
org.springframework.transaction.support.TransactionCallback

public class ContentEntityMigrationTaskWrapper
extends java.lang.Object
implements org.springframework.transaction.support.TransactionCallback

Wraps a ContentEntityMigrationBatchTask and ensures that the flush mode of the session is set to commit. This ensures that our session doesn't chew all the memory as we load each and every CEO.


Nested Class Summary
static class ContentEntityMigrationTaskWrapper.LoggingCallback
          Provides coordinated thread-safe logging of progress across multiple executing threads.
 
Constructor Summary
ContentEntityMigrationTaskWrapper(ExceptionTolerantMigrator migrator, ExceptionReport report, ContentDao contentDao, BatchableWorkSource<ContentEntityObject> workSource, com.atlassian.cache.CacheManager cacheManager, java.lang.String versionComment, ContentEntityMigrationTaskWrapper.LoggingCallback loggingCallback)
           
 
Method Summary
 java.lang.Integer doInTransaction(org.springframework.transaction.TransactionStatus status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentEntityMigrationTaskWrapper

public ContentEntityMigrationTaskWrapper(ExceptionTolerantMigrator migrator,
                                         ExceptionReport report,
                                         ContentDao contentDao,
                                         BatchableWorkSource<ContentEntityObject> workSource,
                                         com.atlassian.cache.CacheManager cacheManager,
                                         java.lang.String versionComment,
                                         ContentEntityMigrationTaskWrapper.LoggingCallback loggingCallback)
Method Detail

doInTransaction

public java.lang.Integer doInTransaction(org.springframework.transaction.TransactionStatus status)
Specified by:
doInTransaction in interface org.springframework.transaction.support.TransactionCallback
Returns:
a count of the number of content entities that needed to be migrated in this batch.


Copyright © 2003-2014 Atlassian. All Rights Reserved.