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 RemoteDirectoryManager
IOException
public org.apache.hadoop.fs.Path getJobCheckpointDir(String jobName, boolean create) throws IOException
getJobCheckpointDir
in interface RemoteDirectoryManager
IOException
public org.apache.hadoop.fs.Path getModelDir(String modelName, boolean create) throws IOException
getModelDir
in interface RemoteDirectoryManager
IOException
public org.apache.hadoop.fs.FileSystem getDefaultFileSystem()
getDefaultFileSystem
in interface RemoteDirectoryManager
public org.apache.hadoop.fs.FileSystem getFileSystemByUri(String uri) throws IOException
getFileSystemByUri
in interface RemoteDirectoryManager
IOException
public org.apache.hadoop.fs.Path getUserRootFolder() throws IOException
getUserRootFolder
in interface RemoteDirectoryManager
IOException
public boolean isDir(String uri) throws IOException
isDir
in interface RemoteDirectoryManager
IOException
public boolean isRemote(String uri)
isRemote
in interface RemoteDirectoryManager
public boolean copyRemoteToLocal(String remoteUri, String localUri) throws IOException
copyRemoteToLocal
in interface RemoteDirectoryManager
IOException
public boolean existsRemoteFile(org.apache.hadoop.fs.Path url) throws IOException
existsRemoteFile
in interface RemoteDirectoryManager
IOException
public org.apache.hadoop.fs.FileStatus getRemoteFileStatus(org.apache.hadoop.fs.Path url) throws IOException
getRemoteFileStatus
in interface RemoteDirectoryManager
IOException
public long getRemoteFileSize(String uri) throws IOException
getRemoteFileSize
in interface RemoteDirectoryManager
IOException
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.