public class UploadFileTransfer extends AbstractFileTransfer
TransferState.getFile()
into TransferState.getBuffer()
and then writing
to the
server. Not thread safeAbstractFileTransfer.Transfers
log
Constructor and Description |
---|
UploadFileTransfer() |
Modifier and Type | Method and Description |
---|---|
void |
afterTransfer(int errors,
java.util.List<java.lang.String> srcFiles)
Since the
RawFileStorePrx instances are cleaned up after each
transfer, there's no need to cleanup per File . |
java.lang.String |
transfer(TransferState state)
Transfers a file and returns the appropriate checksum string for
the source file.
|
cleanupUpload, createTransfer, deleteTransferredFiles, finish, isWindows, printLine, start
public java.lang.String transfer(TransferState state) throws java.io.IOException, omero.ServerError
FileTransfer
TransferState
instance should be unique
for this invocation, i.e. not used by any other threads. After
execution, the fields can be inspected to see, e.g., the newly created
file.java.io.IOException
omero.ServerError
public void afterTransfer(int errors, java.util.List<java.lang.String> srcFiles) throws CleanupFailure
RawFileStorePrx
instances are cleaned up after each
transfer, there's no need to cleanup per File
.CleanupFailure
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.