Package com.atlassian.confluence.upgrade
Class AttachmentMigratorToV4
java.lang.Object
com.atlassian.core.task.longrunning.AbstractLongRunningTask
com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask
com.atlassian.confluence.upgrade.AttachmentMigratorToV4
- All Implemented Interfaces:
 com.atlassian.core.task.longrunning.LongRunningTask,Runnable
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdefines how deep in file system the new task should be createdstatic final StringFields inherited from class com.atlassian.core.task.longrunning.AbstractLongRunningTask
log, METRIC_NAME, progress, TASK_CLASSNAME_TAG, TASK_NAME_TAG - 
Constructor Summary
ConstructorsConstructorDescriptionAttachmentMigratorToV4(AttachmentDataStorageLocationResolver v3LocationResolver, AttachmentDataFileSystem attachmentDataFileSystemV4, com.atlassian.event.api.EventPublisher eventPublisher) AttachmentMigratorToV4(AttachmentDataStorageLocationResolver locationResolver, AttachmentDataFileSystem attachmentDataFileSystemV4, com.atlassian.event.api.EventPublisher eventPublisher, AttachmentMigratorToV4Reporter reporter)  - 
Method Summary
Methods inherited from class com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask
getResourceBundle, runMethods inherited from class com.atlassian.core.task.longrunning.AbstractLongRunningTask
getCurrentStatus, getElapsedTime, getEstimatedTimeRemaining, getNameKey, getPercentageComplete, getPrettyElapsedTime, getPrettyTimeRemaining, isComplete, isSuccessful, stopTimer 
- 
Field Details
- 
CONFLUENCE_ATTACHMENTS_VER004_MIGRATION_NUM_OF_THREADS
- See Also:
 
 - 
CONFLUENCE_ATTACHMENTS_VER004_LEVEL_FOR_NEW_THREAD
defines how deep in file system the new task should be created- See Also:
 
 
 - 
 - 
Constructor Details
- 
AttachmentMigratorToV4
public AttachmentMigratorToV4(AttachmentDataStorageLocationResolver v3LocationResolver, AttachmentDataFileSystem attachmentDataFileSystemV4, com.atlassian.event.api.EventPublisher eventPublisher) throws IOException - Throws:
 IOException
 - 
AttachmentMigratorToV4
public AttachmentMigratorToV4(AttachmentDataStorageLocationResolver locationResolver, AttachmentDataFileSystem attachmentDataFileSystemV4, com.atlassian.event.api.EventPublisher eventPublisher, AttachmentMigratorToV4Reporter reporter)  
 - 
 - 
Method Details
- 
migrate
public void migrate()performs migration of attachments from version V3 to V4. - 
stopMigration
public void stopMigration() - 
runInternal
protected void runInternal()Description copied from class:ConfluenceAbstractLongRunningTaskRun the long running process. When this method exits, the process should be complete.- Specified by:
 runInternalin classConfluenceAbstractLongRunningTask
 - 
getName
 - 
getNumDuplicates
 - 
getNumFailedToMigrate
 - 
getNumCores
 
 -