Package ome.formats.importer.transfers
Class SymlinkFileTransfer
- java.lang.Object
-
- ome.formats.importer.transfers.AbstractFileTransfer
-
- ome.formats.importer.transfers.AbstractExecFileTransfer
-
- ome.formats.importer.transfers.SymlinkFileTransfer
-
- All Implemented Interfaces:
FileTransfer
public class SymlinkFileTransfer extends AbstractExecFileTransfer
Local-only file transfer mechanism which makes use of soft-linking.- 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 SymlinkFileTransfer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterTransfer(int errors, java.util.List<java.lang.String> srcFiles)No cleanup is needed for soft-linking.protected voidexec(java.io.File file, java.io.File location)Creates a symlink.-
Methods inherited from class ome.formats.importer.transfers.AbstractExecFileTransfer
checkLocation, checkTarget, createProcessBuilder, failLocationCheck, getLocalLocation, transfer
-
Methods inherited from class ome.formats.importer.transfers.AbstractFileTransfer
cleanupUpload, createTransfer, deleteTransferredFiles, finish, isWindows, printLine, start
-
-
-
-
Method Detail
-
exec
protected void exec(java.io.File file, java.io.File location) throws java.io.IOExceptionCreates a symlink.- Overrides:
execin classAbstractExecFileTransfer- Parameters:
file- File to be copied.location- Location to copy to.- Throws:
java.io.IOException
-
afterTransfer
public void afterTransfer(int errors, java.util.List<java.lang.String> srcFiles)No cleanup is needed for soft-linking.
-
-