public abstract class AbstractExecFileTransfer extends AbstractFileTransfer
AbstractFileTransfer.Transfers
log
コンストラクタと説明 |
---|
AbstractExecFileTransfer() |
修飾子とタイプ | メソッドと説明 |
---|---|
protected void |
checkLocation(java.io.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 java.lang.ProcessBuilder |
createProcessBuilder(java.io.File file,
java.io.File location)
Creates a
ProcessBuilder instance ready to have
ProcessBuilder.start() called on it. |
protected void |
exec(java.io.File file,
java.io.File location)
Executes a local command and fails on non-0 return codes.
|
protected java.lang.RuntimeException |
failLocationCheck(java.io.File location,
java.lang.String msg) |
protected java.io.File |
getLocalLocation(omero.model.OriginalFile root,
omero.model.OriginalFile ofile)
Build a path of the form "root.path/root.name/file.path/file.name".
|
java.lang.String |
transfer(TransferState state)
"Transfer" files by soft-linking them into place.
|
cleanupUpload, createTransfer, deleteTransferredFiles, finish, isWindows, printLine, start
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterTransfer
public java.lang.String transfer(TransferState state) throws java.io.IOException, omero.ServerError
createProcessBuilder(File, File)
and the other protected methods here.java.io.IOException
omero.ServerError
protected java.io.File getLocalLocation(omero.model.OriginalFile root, omero.model.OriginalFile ofile)
root
- ofile
- protected void checkLocation(java.io.File location, omero.api.RawFileStorePrx rawFileStore) throws omero.ServerError, java.io.IOException
location
- rawFileStore
- omero.ServerError
java.io.IOException
protected java.lang.RuntimeException failLocationCheck(java.io.File location, java.lang.String msg)
protected void exec(java.io.File file, java.io.File location) throws java.io.IOException
file
- location
- java.io.IOException
protected abstract java.lang.ProcessBuilder createProcessBuilder(java.io.File file, java.io.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
-