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,
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, start
public String transfer(TransferState state) throws 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.IOException
omero.ServerError
public 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.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.