public interface FileTransfer
| Modifier and Type | Method and Description |
|---|---|
void |
getFile(java.lang.String srcRemotePath,
java.lang.String dstLocalPath)
Gets a file from any remote location to Genie's local working directory.
|
long |
getLastModifiedTime(java.lang.String path)
Returns the last modified time of the file with the given path.
|
boolean |
isValid(java.lang.String fileName)
This method validates whether it can handle operations for a particular file
based on the prefix of the file like s3://, hdfs:// etc.
|
void |
putFile(java.lang.String srcLocalPath,
java.lang.String dstRemotePath)
Puts a file from Genie's local working directory to a remote location.
|
boolean isValid(java.lang.String fileName)
throws com.netflix.genie.common.exceptions.GenieException
fileName - file name to validatecom.netflix.genie.common.exceptions.GenieException - if there are errorsvoid getFile(java.lang.String srcRemotePath,
java.lang.String dstLocalPath)
throws com.netflix.genie.common.exceptions.GenieException
srcRemotePath - Source path of the files to copydstLocalPath - Destination path of the files to copy tocom.netflix.genie.common.exceptions.GenieException - exception in case of an errorvoid putFile(java.lang.String srcLocalPath,
java.lang.String dstRemotePath)
throws com.netflix.genie.common.exceptions.GenieException
srcLocalPath - Source path of the files to copydstRemotePath - Destination path of the files to copy tocom.netflix.genie.common.exceptions.GenieException - exception in case of an errorlong getLastModifiedTime(java.lang.String path)
throws com.netflix.genie.common.exceptions.GenieException
path - location of the filecom.netflix.genie.common.exceptions.GenieException - exception in case of IO error