public interface FileSystemMasterClient extends Client
Modifier and Type | Interface and Description |
---|---|
static class |
FileSystemMasterClient.Factory
Factory for
FileSystemMasterClient . |
Modifier and Type | Method and Description |
---|---|
List<AlluxioURI> |
checkConsistency(AlluxioURI path,
CheckConsistencyOptions options)
Checks the consistency of Alluxio metadata against the under storage for all files and
directories in a given subtree.
|
void |
completeFile(AlluxioURI path,
CompleteFileOptions options)
Marks a file as completed.
|
void |
createDirectory(AlluxioURI path,
CreateDirectoryOptions options)
Creates a new directory.
|
void |
createFile(AlluxioURI path,
CreateFileOptions options)
Creates a new file.
|
void |
delete(AlluxioURI path,
DeleteOptions options)
Deletes a file or a directory.
|
void |
free(AlluxioURI path,
FreeOptions options)
Frees a file.
|
String |
getFilePath(GetFilePathTOptions options) |
Map<String,MountPointInfo> |
getMountTable()
Lists all mount points and their corresponding under storage addresses.
|
long |
getNewBlockIdForFile(AlluxioURI path) |
URIStatus |
getStatus(AlluxioURI path,
GetStatusOptions options) |
List<URIStatus> |
listStatus(AlluxioURI path,
ListStatusOptions options) |
void |
loadMetadata(AlluxioURI path,
LoadMetadataOptions options)
Deprecated.
since version 1.1 and will be removed in version 2.0
|
void |
mount(AlluxioURI alluxioPath,
AlluxioURI ufsPath,
MountOptions options)
Mounts the given UFS path under the given Alluxio path.
|
void |
rename(AlluxioURI src,
AlluxioURI dst)
Renames a file or a directory.
|
void |
rename(AlluxioURI src,
AlluxioURI dst,
RenameOptions options)
Renames a file or a directory.
|
void |
scheduleAsyncPersist(AlluxioURI path)
Schedules the async persistence of the given file.
|
void |
setAttribute(AlluxioURI path,
SetAttributeOptions options)
Sets the file or directory attributes.
|
void |
unmount(AlluxioURI alluxioPath)
Unmounts the given Alluxio path.
|
void |
updateUfsMode(AlluxioURI ufsUri,
UpdateUfsModeOptions options)
Updates the operation mode for the given ufs path.
|
connect, disconnect, getAddress, isConnected
List<AlluxioURI> checkConsistency(AlluxioURI path, CheckConsistencyOptions options) throws AlluxioStatusException
path
- the root of the subtree to checkoptions
- method optionsAlluxioStatusException
void createDirectory(AlluxioURI path, CreateDirectoryOptions options) throws AlluxioStatusException
path
- the directory pathoptions
- method optionsAlreadyExistsException
- if the directory already existsAlluxioStatusException
void createFile(AlluxioURI path, CreateFileOptions options) throws AlluxioStatusException
path
- the file pathoptions
- method optionsAlreadyExistsException
- if the file already existsAlluxioStatusException
void completeFile(AlluxioURI path, CompleteFileOptions options) throws AlluxioStatusException
path
- the file pathoptions
- the method optionsAlluxioStatusException
void delete(AlluxioURI path, DeleteOptions options) throws AlluxioStatusException
path
- the path to deleteoptions
- method optionsAlluxioStatusException
void free(AlluxioURI path, FreeOptions options) throws AlluxioStatusException
path
- the path to freeoptions
- method optionsNotFoundException
- if the path does not existAlluxioStatusException
String getFilePath(GetFilePathTOptions options) throws AlluxioStatusException
options
- the getFilePath optionsAlluxioStatusException
URIStatus getStatus(AlluxioURI path, GetStatusOptions options) throws AlluxioStatusException
path
- the file pathoptions
- the getStatus optionsNotFoundException
- if the path does not existAlluxioStatusException
long getNewBlockIdForFile(AlluxioURI path) throws AlluxioStatusException
path
- the file pathAlluxioStatusException
List<URIStatus> listStatus(AlluxioURI path, ListStatusOptions options) throws AlluxioStatusException
path
- the path to listoptions
- the listStatus optionsNotFoundException
- if the path does not existAlluxioStatusException
@Deprecated void loadMetadata(AlluxioURI path, LoadMetadataOptions options) throws AlluxioStatusException
path
- the path of the file to load metadata foroptions
- method optionsNotFoundException
- if the path does not existAlluxioStatusException
void mount(AlluxioURI alluxioPath, AlluxioURI ufsPath, MountOptions options) throws AlluxioStatusException
alluxioPath
- the Alluxio pathufsPath
- the UFS pathoptions
- mount optionsAlluxioStatusException
Map<String,MountPointInfo> getMountTable() throws AlluxioStatusException
MountPointInfo
AlluxioStatusException
void rename(AlluxioURI src, AlluxioURI dst) throws AlluxioStatusException
src
- the path to renamedst
- new file pathNotFoundException
- if the path does not existAlluxioStatusException
void rename(AlluxioURI src, AlluxioURI dst, RenameOptions options) throws AlluxioStatusException
src
- the path to renamedst
- new file pathoptions
- rename optionsNotFoundException
- if the path does not existAlluxioStatusException
void setAttribute(AlluxioURI path, SetAttributeOptions options) throws AlluxioStatusException
path
- the file or directory pathoptions
- the file or directory attribute options to be setNotFoundException
- if the path does not existAlluxioStatusException
void scheduleAsyncPersist(AlluxioURI path) throws AlluxioStatusException
path
- the file pathAlluxioStatusException
void unmount(AlluxioURI alluxioPath) throws AlluxioStatusException
alluxioPath
- the Alluxio pathAlluxioStatusException
void updateUfsMode(AlluxioURI ufsUri, UpdateUfsModeOptions options) throws AlluxioStatusException
ufsUri
- the ufs pathoptions
- the options to update ufs operation modeAlluxioStatusException
Copyright © 2023. All Rights Reserved.