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

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

public class ContentEntityMigrationTaskWrapper
extends org.springframework.transaction.support.TransactionCallbackWithoutResult

Wraps a @see 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
protected ContentEntityMigrationTaskWrapper(ExceptionReport report, ContentDao contentDao, BatchableWorkSource<ContentEntityObject> workSource, ContentEntityMigrationBatchTask batchTask, com.atlassian.cache.CacheManager cacheManager, ContentEntityMigrationTaskWrapper.LoggingCallback loggingCallback)
          Constructor exposed for unit tests.
  ContentEntityMigrationTaskWrapper(ExceptionTolerantMigrator migrator, ExceptionReport report, ContentDao contentDao, BatchableWorkSource<ContentEntityObject> workSource, com.atlassian.cache.CacheManager cacheManager, String versionComment, ContentEntityMigrationTaskWrapper.LoggingCallback loggingCallback)
           
 
Method Summary
protected  void doInTransactionWithoutResult(org.springframework.transaction.TransactionStatus status)
           
 
Methods inherited from class org.springframework.transaction.support.TransactionCallbackWithoutResult
doInTransaction
 
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,
                                         String versionComment,
                                         ContentEntityMigrationTaskWrapper.LoggingCallback loggingCallback)

ContentEntityMigrationTaskWrapper

protected ContentEntityMigrationTaskWrapper(ExceptionReport report,
                                            ContentDao contentDao,
                                            BatchableWorkSource<ContentEntityObject> workSource,
                                            ContentEntityMigrationBatchTask batchTask,
                                            com.atlassian.cache.CacheManager cacheManager,
                                            ContentEntityMigrationTaskWrapper.LoggingCallback loggingCallback)
Constructor exposed for unit tests.

Parameters:
report -
contentDao -
workSource -
batchTask -
cacheManager -
Method Detail

doInTransactionWithoutResult

protected void doInTransactionWithoutResult(org.springframework.transaction.TransactionStatus status)
Specified by:
doInTransactionWithoutResult in class org.springframework.transaction.support.TransactionCallbackWithoutResult


Copyright © 2003-2011 Atlassian. All Rights Reserved.