public class TransferOrder extends Object
Constructor and Description |
---|
TransferOrder(LocalLocation source,
RemoteLocation destination,
XferParams xferParams)
Construct an upload TransferOrder.
|
TransferOrder(RemoteLocation source,
LocalLocation destination,
XferParams xferParams)
Construct a download TransferOrder.
|
Modifier and Type | Method and Description |
---|---|
protected List<AscpParameter> |
buildCommandLineParams(UUID xferId) |
protected List<AscpParameter> |
buildCommandLineParams(UUID xferId,
int xferRetry) |
FileTransferLocation |
getClient()
Get the client, who initiated the transfer.
|
FileTransferLocation |
getDestination()
Get the destination location, where data is transferred to.
|
RemoteLocation |
getServer()
Get the server, who did not initiate the transfer.
|
FileTransferLocation |
getSource()
Get the source location, where data is transferred from.
|
XferParams |
getXferParams()
Get the transfer parameters.
|
boolean |
isUpload()
Get the direction of this transfer.
|
void |
setDestination(FileTransferLocation destination)
Set the destination location.
|
void |
setSource(FileTransferLocation source)
Set the source location.
|
protected void |
setXferParams(XferParams xferParams)
Set the transfer parameters.
|
void |
validate()
Check the order for invalid parameters.
|
public TransferOrder(LocalLocation source, RemoteLocation destination, XferParams xferParams)
source
- with local files to uploaddestination
- with destination path and server parametersxferParams
- with transfer parameterspublic TransferOrder(RemoteLocation source, LocalLocation destination, XferParams xferParams)
source
- with files to download and server parametersdestination
- with local destination pathxferParams
- with transfer parametersprotected List<AscpParameter> buildCommandLineParams(UUID xferId)
protected List<AscpParameter> buildCommandLineParams(UUID xferId, int xferRetry)
public FileTransferLocation getClient()
public FileTransferLocation getDestination()
public RemoteLocation getServer()
public FileTransferLocation getSource()
public XferParams getXferParams()
public boolean isUpload()
public void setDestination(FileTransferLocation destination)
destination
- the location data is transferred topublic void setSource(FileTransferLocation source)
source
- the location data is transferred fromprotected void setXferParams(XferParams xferParams)
xferParams
- the transfer parameterspublic void validate() throws ValidationException
ValidationException
- thrown if a validation error occursCopyright © 2015 Aspera Inc.. All rights reserved.