@ThreadSafe public class CachingFileSystem extends BaseFileSystem
FileSystem.Cache, FileSystem.Factory, FileSystem.FileSystemKey
mBlockStore, mCachingEnabled, mClosed, mFsContext
Constructor and Description |
---|
CachingFileSystem(FileSystemContext context,
boolean cachingEnabled) |
Modifier and Type | Method and Description |
---|---|
void |
asyncUpdateFileAccessTime(AlluxioURI path)
Asynchronously update file's last access time.
|
void |
close()
Shuts down the FileSystem.
|
URIStatus |
getStatus(AlluxioURI path,
GetStatusPOptions options)
Gets the
URIStatus object that represents the metadata of an Alluxio path. |
List<URIStatus> |
listStatus(AlluxioURI path,
ListStatusPOptions options)
If the path is a directory, returns the
URIStatus of all the direct entries in it. |
checkUri, create, create, createDirectory, createDirectory, createFile, createFile, delete, delete, exists, exists, free, free, getBlockLocations, getConf, getMountTable, getStatus, getSyncPathList, isClosed, listStatus, mount, mount, openFile, openFile, persist, persist, rename, rename, reverseResolve, setAcl, setAcl, setAttribute, setAttribute, startSync, stopSync, unmount, unmount, updateMount
public CachingFileSystem(FileSystemContext context, boolean cachingEnabled)
context
- the fs contextcachingEnabled
- enables cachingpublic URIStatus getStatus(AlluxioURI path, GetStatusPOptions options) throws FileDoesNotExistException, IOException, AlluxioException
FileSystem
URIStatus
object that represents the metadata of an Alluxio path.getStatus
in interface FileSystem
getStatus
in class BaseFileSystem
path
- the path to obtain information aboutoptions
- options to associate with this operationURIStatus
of the fileFileDoesNotExistException
- if the path does not existIOException
AlluxioException
public List<URIStatus> listStatus(AlluxioURI path, ListStatusPOptions options) throws FileDoesNotExistException, IOException, AlluxioException
FileSystem
URIStatus
of all the direct entries in it.
Otherwise returns a list with a single URIStatus
element for the file.listStatus
in interface FileSystem
listStatus
in class BaseFileSystem
path
- the path to list information aboutoptions
- options to associate with this operationURIStatus
s containing information about the files and directories
which are children of the given pathFileDoesNotExistException
- if the given path does not existIOException
AlluxioException
public void asyncUpdateFileAccessTime(AlluxioURI path)
path
- the path to the filepublic void close() throws IOException
BaseFileSystem
close
in interface Closeable
close
in interface AutoCloseable
close
in class BaseFileSystem
IOException
Copyright © 2023. All Rights Reserved.