Package ome.formats.importer.transfers
Class MoveFileTransfer
- java.lang.Object
-
- ome.formats.importer.transfers.AbstractFileTransfer
-
- ome.formats.importer.transfers.AbstractExecFileTransfer
-
- ome.formats.importer.transfers.HardlinkFileTransfer
-
- ome.formats.importer.transfers.MoveFileTransfer
-
- All Implemented Interfaces:
FileTransfer
public class MoveFileTransfer extends HardlinkFileTransfer
Local-only file transfer mechanism which makes use of hard-linking followed by the deletion of the original source file.- Since:
- 5.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ome.formats.importer.transfers.AbstractFileTransfer
AbstractFileTransfer.Transfers
-
-
Field Summary
-
Fields inherited from class ome.formats.importer.transfers.AbstractFileTransfer
log
-
-
Constructor Summary
Constructors Constructor Description MoveFileTransfer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterTransfer(int errors, java.util.List<java.lang.String> srcFiles)
Deletes all hard-linked files if there were no errors.-
Methods inherited from class ome.formats.importer.transfers.HardlinkFileTransfer
createProcessBuilder
-
Methods inherited from class ome.formats.importer.transfers.AbstractExecFileTransfer
checkLocation, checkTarget, exec, failLocationCheck, getLocalLocation, printLine, transfer
-
Methods inherited from class ome.formats.importer.transfers.AbstractFileTransfer
cleanupUpload, createTransfer, deleteTransferredFiles, finish, isWindows, start
-
-
-
-
Method Detail
-
afterTransfer
public void afterTransfer(int errors, java.util.List<java.lang.String> srcFiles) throws CleanupFailure
Deletes all hard-linked files if there were no errors.- Specified by:
afterTransfer
in interfaceFileTransfer
- Overrides:
afterTransfer
in classHardlinkFileTransfer
- Throws:
CleanupFailure
-
-