public class GenieFileTransferService
extends java.lang.Object
Constructor and Description |
---|
GenieFileTransferService(@NotNull FileTransferFactory fileTransferFactory)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
getFile(@NotBlank(message="Source file path cannot be empty.") java.lang.String srcRemotePath,
@NotBlank(message="Destination local path cannot be empty") java.lang.String dstLocalPath)
Get the file needed by Genie for job execution.
|
void |
putFile(@NotBlank(message="Source local path cannot be empty.") java.lang.String srcLocalPath,
@NotBlank(message="Destination remote path cannot be empty") java.lang.String dstRemotePath)
Put the file provided by Genie.
|
public GenieFileTransferService(@NotNull @NotNull FileTransferFactory fileTransferFactory) throws GenieException
fileTransferFactory
- file transfer implementation factoryGenieException
- If there is any problempublic void getFile(@NotBlank(message="Source file path cannot be empty.") @NotBlank(message="Source file path cannot be empty.") java.lang.String srcRemotePath, @NotBlank(message="Destination local path cannot be empty") @NotBlank(message="Destination local path cannot be empty") java.lang.String dstLocalPath) throws GenieException
srcRemotePath
- Path of the file in the remote location to be fetcheddstLocalPath
- Local path where the file needs to be placedGenieException
- If there is any problempublic void putFile(@NotBlank(message="Source local path cannot be empty.") @NotBlank(message="Source local path cannot be empty.") java.lang.String srcLocalPath, @NotBlank(message="Destination remote path cannot be empty") @NotBlank(message="Destination remote path cannot be empty") java.lang.String dstRemotePath) throws GenieException
srcLocalPath
- The local path of the file which has to be transfered to remote locationdstRemotePath
- The remote destination path where the file has to be putGenieException
- If there is any problem