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 GenieException
fileName
- file name to validateGenieException
- if there are errorsvoid getFile(java.lang.String srcRemotePath, java.lang.String dstLocalPath) throws GenieException
srcRemotePath
- Source path of the files to copydstLocalPath
- Destination path of the files to copy toGenieException
- exception in case of an errorvoid putFile(java.lang.String srcLocalPath, java.lang.String dstRemotePath) throws GenieException
srcLocalPath
- Source path of the files to copydstRemotePath
- Destination path of the files to copy toGenieException
- exception in case of an errorlong getLastModifiedTime(java.lang.String path) throws GenieException
path
- location of the fileGenieException
- exception in case of IO error