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 String
CONFLUENCE_ATTACHMENTS_VER004_LEVEL_FOR_NEW_THREAD
defines how deep in file system the new task should be createdstatic String
CONFLUENCE_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 String
getName()
AtomicInteger
getNumCores()
AtomicInteger
getNumDuplicates()
AtomicInteger
getNumFailedToMigrate()
void
migrate()
performs migration of attachments from version V3 to V4.protected void
runInternal()
Run the long running process.void
stopMigration()
-
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:ConfluenceAbstractLongRunningTask
Run the long running process. When this method exits, the process should be complete.- Specified by:
runInternal
in classConfluenceAbstractLongRunningTask
-
getName
public String getName()
-
getNumDuplicates
public AtomicInteger getNumDuplicates()
-
getNumFailedToMigrate
public AtomicInteger getNumFailedToMigrate()
-
getNumCores
public AtomicInteger getNumCores()
-
-