public class DefaultRemoteDirectoryManager extends Object implements RemoteDirectoryManager
| Constructor and Description |
|---|
DefaultRemoteDirectoryManager(ClientContext context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
copyRemoteToLocal(String remoteUri,
String localUri) |
boolean |
existsRemoteFile(org.apache.hadoop.fs.Path url) |
org.apache.hadoop.fs.FileSystem |
getDefaultFileSystem() |
org.apache.hadoop.fs.FileSystem |
getFileSystemByUri(String uri) |
org.apache.hadoop.fs.Path |
getJobCheckpointDir(String jobName,
boolean create) |
org.apache.hadoop.fs.Path |
getJobStagingArea(String jobName,
boolean create) |
org.apache.hadoop.fs.Path |
getModelDir(String modelName,
boolean create) |
long |
getRemoteFileSize(String uri) |
org.apache.hadoop.fs.FileStatus |
getRemoteFileStatus(org.apache.hadoop.fs.Path url) |
org.apache.hadoop.fs.Path |
getUserRootFolder() |
boolean |
isDir(String uri) |
boolean |
isRemote(String uri) |
public DefaultRemoteDirectoryManager(ClientContext context)
public org.apache.hadoop.fs.Path getJobStagingArea(String jobName, boolean create) throws IOException
getJobStagingArea in interface RemoteDirectoryManagerIOExceptionpublic org.apache.hadoop.fs.Path getJobCheckpointDir(String jobName, boolean create) throws IOException
getJobCheckpointDir in interface RemoteDirectoryManagerIOExceptionpublic org.apache.hadoop.fs.Path getModelDir(String modelName, boolean create) throws IOException
getModelDir in interface RemoteDirectoryManagerIOExceptionpublic org.apache.hadoop.fs.FileSystem getDefaultFileSystem()
getDefaultFileSystem in interface RemoteDirectoryManagerpublic org.apache.hadoop.fs.FileSystem getFileSystemByUri(String uri) throws IOException
getFileSystemByUri in interface RemoteDirectoryManagerIOExceptionpublic org.apache.hadoop.fs.Path getUserRootFolder()
throws IOException
getUserRootFolder in interface RemoteDirectoryManagerIOExceptionpublic boolean isDir(String uri) throws IOException
isDir in interface RemoteDirectoryManagerIOExceptionpublic boolean isRemote(String uri)
isRemote in interface RemoteDirectoryManagerpublic boolean copyRemoteToLocal(String remoteUri, String localUri) throws IOException
copyRemoteToLocal in interface RemoteDirectoryManagerIOExceptionpublic boolean existsRemoteFile(org.apache.hadoop.fs.Path url)
throws IOException
existsRemoteFile in interface RemoteDirectoryManagerIOExceptionpublic org.apache.hadoop.fs.FileStatus getRemoteFileStatus(org.apache.hadoop.fs.Path url)
throws IOException
getRemoteFileStatus in interface RemoteDirectoryManagerIOExceptionpublic long getRemoteFileSize(String uri) throws IOException
getRemoteFileSize in interface RemoteDirectoryManagerIOExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.