public abstract class AbstractExecFileTransfer extends AbstractFileTransfer
AbstractFileTransfer.Transferslog| Constructor and Description |
|---|
AbstractExecFileTransfer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkLocation(File location,
omero.api.RawFileStorePrx rawFileStore)
Check that the target location: 1) doesn't exist and 2) is properly
written to by the server.
|
protected abstract ProcessBuilder |
createProcessBuilder(File file,
File location)
Creates a
ProcessBuilder instance ready to have
ProcessBuilder.start() called on it. |
protected void |
exec(File file,
File location)
Executes a local command and fails on non-0 return codes.
|
protected RuntimeException |
failLocationCheck(File location,
String msg) |
protected File |
getLocalLocation(omero.model.OriginalFile root,
omero.model.OriginalFile ofile)
Build a path of the form "root.path/root.name/file.path/file.name".
|
protected void |
printLine() |
String |
transfer(TransferState state)
"Transfer" files by soft-linking them into place.
|
cleanupUpload, createTransfer, deleteTransferredFiles, finish, isWindows, startclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterTransferpublic String transfer(TransferState state) throws IOException, omero.ServerError
createProcessBuilder(File, File) and the other protected methods here.IOExceptionomero.ServerErrorprotected File getLocalLocation(omero.model.OriginalFile root, omero.model.OriginalFile ofile)
root - ofile - protected void checkLocation(File location, omero.api.RawFileStorePrx rawFileStore) throws omero.ServerError, IOException
location - rawFileStore - omero.ServerErrorIOExceptionprotected RuntimeException failLocationCheck(File location, String msg)
protected void exec(File file, File location) throws IOException
file - location - IOExceptionprotected abstract ProcessBuilder createProcessBuilder(File file, File location)
ProcessBuilder instance ready to have
ProcessBuilder.start() called on it. The only critical
piece of information should be the return code.file - location - protected void printLine()
printLine in class AbstractFileTransfer
Version: 5.1.0-ice35-b40
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.