@ThreadSafe public class WebUnderFileSystem extends ConsistentUnderFileSystem
UnderFileSystem implementation.UnderFileSystem.Factory, UnderFileSystem.SpaceTypemUfsConf, mUri| Constructor and Description |
|---|
WebUnderFileSystem(AlluxioURI uri,
UnderFileSystemConfiguration ufsConf)
Constructs a new
WebUnderFileSystem. |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
void |
close() |
void |
connectFromMaster(java.lang.String hostname) |
void |
connectFromWorker(java.lang.String hostname) |
java.io.OutputStream |
create(java.lang.String path,
CreateOptions options) |
boolean |
deleteDirectory(java.lang.String path,
DeleteOptions options) |
boolean |
deleteFile(java.lang.String path) |
boolean |
exists(java.lang.String path) |
long |
getBlockSizeByte(java.lang.String path) |
UfsDirectoryStatus |
getDirectoryStatus(java.lang.String path) |
java.util.List<java.lang.String> |
getFileLocations(java.lang.String path) |
java.util.List<java.lang.String> |
getFileLocations(java.lang.String path,
FileLocationOptions options) |
UfsFileStatus |
getFileStatus(java.lang.String path) |
long |
getSpace(java.lang.String path,
UnderFileSystem.SpaceType type) |
UfsStatus |
getStatus(java.lang.String path) |
java.lang.String |
getUnderFSType() |
boolean |
isDirectory(java.lang.String path) |
boolean |
isFile(java.lang.String path) |
UfsStatus[] |
listStatus(java.lang.String path) |
boolean |
mkdirs(java.lang.String path,
MkdirsOptions options) |
java.io.InputStream |
open(java.lang.String path,
OpenOptions options) |
boolean |
renameDirectory(java.lang.String src,
java.lang.String dst) |
boolean |
renameFile(java.lang.String src,
java.lang.String dst) |
void |
setMode(java.lang.String path,
short mode) |
void |
setOwner(java.lang.String path,
java.lang.String user,
java.lang.String group) |
boolean |
supportsFlush() |
createNonexistingFile, createNonexistingFile, deleteExistingDirectory, deleteExistingDirectory, deleteExistingFile, getExistingDirectoryStatus, getExistingFileStatus, getExistingStatus, isExistingDirectory, openExistingFile, openExistingFile, renameRenamableDirectory, renameRenamableFilecreate, deleteDirectory, getAclPair, getActiveSyncInfo, getConfiguration, getFingerprint, getOperationMode, getPhysicalStores, isObjectStorage, isSeekable, listStatus, mkdirs, open, resolveUri, setAclEntries, startActiveSyncPolling, startSync, stopActiveSyncPolling, stopSync, supportsActiveSync, validatePathpublic WebUnderFileSystem(AlluxioURI uri, UnderFileSystemConfiguration ufsConf)
WebUnderFileSystem.uri - the AlluxioURI for this UFSufsConf - UFS configurationpublic java.lang.String getUnderFSType()
public void cleanup()
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic java.io.OutputStream create(java.lang.String path,
CreateOptions options)
throws java.io.IOException
java.io.IOExceptionpublic boolean deleteDirectory(java.lang.String path,
DeleteOptions options)
throws java.io.IOException
java.io.IOExceptionpublic boolean deleteFile(java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic boolean exists(java.lang.String path)
throws java.io.IOException
exists in interface UnderFileSystemexists in class BaseUnderFileSystemjava.io.IOExceptionpublic long getBlockSizeByte(java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic UfsDirectoryStatus getDirectoryStatus(java.lang.String path) throws java.io.IOException
java.io.IOExceptionpublic java.util.List<java.lang.String> getFileLocations(java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic java.util.List<java.lang.String> getFileLocations(java.lang.String path,
FileLocationOptions options)
throws java.io.IOException
java.io.IOExceptionpublic UfsFileStatus getFileStatus(java.lang.String path) throws java.io.IOException
java.io.IOExceptionpublic long getSpace(java.lang.String path,
UnderFileSystem.SpaceType type)
public UfsStatus getStatus(java.lang.String path) throws java.io.IOException
java.io.IOExceptionpublic boolean isDirectory(java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic boolean isFile(java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic UfsStatus[] listStatus(java.lang.String path) throws java.io.IOException
java.io.IOExceptionpublic boolean mkdirs(java.lang.String path,
MkdirsOptions options)
throws java.io.IOException
java.io.IOExceptionpublic java.io.InputStream open(java.lang.String path,
OpenOptions options)
throws java.io.IOException
java.io.IOExceptionpublic boolean renameDirectory(java.lang.String src,
java.lang.String dst)
throws java.io.IOException
java.io.IOExceptionpublic boolean renameFile(java.lang.String src,
java.lang.String dst)
throws java.io.IOException
java.io.IOExceptionpublic void setOwner(java.lang.String path,
java.lang.String user,
java.lang.String group)
throws java.io.IOException
java.io.IOExceptionpublic void setMode(java.lang.String path,
short mode)
throws java.io.IOException
java.io.IOExceptionpublic void connectFromMaster(java.lang.String hostname)
throws java.io.IOException
java.io.IOExceptionpublic void connectFromWorker(java.lang.String hostname)
throws java.io.IOException
java.io.IOExceptionpublic boolean supportsFlush()
throws java.io.IOException
java.io.IOExceptionCopyright © 2021. All Rights Reserved.