Package ome.formats.importer.transfers
Class CopyMoveFileTransfer
- java.lang.Object
-
- ome.formats.importer.transfers.AbstractFileTransfer
-
- ome.formats.importer.transfers.AbstractExecFileTransfer
-
- ome.formats.importer.transfers.CopyFileTransfer
-
- ome.formats.importer.transfers.CopyMoveFileTransfer
-
- All Implemented Interfaces:
FileTransfer
public class CopyMoveFileTransfer extends CopyFileTransfer
Local-only file transfer mechanism which makes use of the local copy command followed by the deletion of the original source file.- Since:
- 5.0.7
-
-
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 CopyMoveFileTransfer()
-
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 copied files if there were no errors.-
Methods inherited from class ome.formats.importer.transfers.CopyFileTransfer
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 copied files if there were no errors.- Specified by:
afterTransfer
in interfaceFileTransfer
- Overrides:
afterTransfer
in classCopyFileTransfer
- Throws:
CleanupFailure
-
-