public class UploadFileTransfer extends AbstractFileTransfer
TransferState.getFile() into TransferState.getBuffer()
and then writing to the
server. Not thread safeAbstractFileTransfer.Transferslog| Constructor and Description |
|---|
UploadFileTransfer() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterTransfer(int errors,
List<String> srcFiles)
Since the
RawFileStorePrx instances are cleaned up after each
transfer, there's no need to cleanup per File. |
String |
transfer(TransferState state)
Transfers a file and returns the appropriate checksum string for
the source file.
|
cleanupUpload, createTransfer, deleteTransferredFiles, finish, isWindows, printLine, startpublic String transfer(TransferState state) throws IOException, omero.ServerError
FileTransferTransferState 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.IOExceptionomero.ServerErrorpublic void afterTransfer(int errors,
List<String> srcFiles)
throws CleanupFailure
RawFileStorePrx instances are cleaned up after each
transfer, there's no need to cleanup per File.CleanupFailure
Version: 5.1.1-ice35-b43
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.