com.atlassian.confluence.upgrade.upgradetask
Class HierarchicalFileSystemAttachmentMoveTask
java.lang.Object
com.atlassian.confluence.upgrade.upgradetask.HierarchicalFileSystemAttachmentMoveTask
- All Implemented Interfaces:
- Runnable
public class HierarchicalFileSystemAttachmentMoveTask
- extends Object
- implements Runnable
A task that will move attachments from the previous storage layout of contentid/attachmentid/version (or for
CONF-8298 the layout last4digitsOfContentId/contentId/attachmentId/version) to the layout used by the new
HierarchicalFileSystemAttachmentDataDao
implementation.
This class is not for multi-threaded use.
Method Summary |
int |
preRunChecksAndSetUp()
Perform some checks and set up the required instance variables prior to running this task. |
void |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HierarchicalFileSystemAttachmentMoveTask
public HierarchicalFileSystemAttachmentMoveTask(net.sf.hibernate.SessionFactory sessionFactory,
HierarchicalFileSystemAttachmentDataDao hierarchicalFileSystemAttachmentDataDao,
File attachmentsDirectory,
IdMultiPartHashGenerator multiPartHashGenerator,
org.slf4j.Logger logger)
run
public void run()
- Specified by:
run
in interface Runnable
preRunChecksAndSetUp
public int preRunChecksAndSetUp()
- Perform some checks and set up the required instance variables prior to running this task.
- Returns:
- the number of content directories that will be migrated.