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
public class AttachmentMigratorToV4 extends ConfluenceAbstractLongRunningTask
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFLUENCE_ATTACHMENTS_VER004_LEVEL_FOR_NEW_THREADdefines how deep in file system the new task should be createdstatic StringCONFLUENCE_ATTACHMENTS_VER004_MIGRATION_NUM_OF_THREADS
-
Constructor Summary
Constructors Constructor Description AttachmentMigratorToV4(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()voidmigrate()performs migration of attachments from version V3 to V4.protected voidrunInternal()Run the long running process.voidstopMigration()-
Methods inherited from class com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask
getResourceBundle, run
-
-
-
-
Field Detail
-
CONFLUENCE_ATTACHMENTS_VER004_MIGRATION_NUM_OF_THREADS
public static final String CONFLUENCE_ATTACHMENTS_VER004_MIGRATION_NUM_OF_THREADS
- See Also:
- Constant Field Values
-
CONFLUENCE_ATTACHMENTS_VER004_LEVEL_FOR_NEW_THREAD
public static final String CONFLUENCE_ATTACHMENTS_VER004_LEVEL_FOR_NEW_THREAD
defines how deep in file system the new task should be created- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
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
public String getName()
-
-