public interface FileSystemMasterClient
extends alluxio.Client
| Modifier and Type | Interface and Description |
|---|---|
static class |
FileSystemMasterClient.Factory
Factory for
FileSystemMasterClient. |
| Modifier and Type | Method and Description |
|---|---|
List<alluxio.AlluxioURI> |
checkConsistency(alluxio.AlluxioURI path,
alluxio.grpc.CheckConsistencyPOptions options)
Checks the consistency of Alluxio metadata against the under storage for all files and
directories in a given subtree.
|
void |
completeFile(alluxio.AlluxioURI path,
alluxio.grpc.CompleteFilePOptions options)
Marks a file as completed.
|
void |
createDirectory(alluxio.AlluxioURI path,
alluxio.grpc.CreateDirectoryPOptions options)
Creates a new directory.
|
alluxio.client.file.URIStatus |
createFile(alluxio.AlluxioURI path,
alluxio.grpc.CreateFilePOptions options)
Creates a new file.
|
void |
delete(alluxio.AlluxioURI path,
alluxio.grpc.DeletePOptions options)
Deletes a file or a directory.
|
void |
free(alluxio.AlluxioURI path,
alluxio.grpc.FreePOptions options)
Frees a file.
|
String |
getFilePath(long fileId) |
Map<String,alluxio.wire.MountPointInfo> |
getMountTable()
Lists all mount points and their corresponding under storage addresses.
|
long |
getNewBlockIdForFile(alluxio.AlluxioURI path) |
alluxio.client.file.URIStatus |
getStatus(alluxio.AlluxioURI path,
alluxio.grpc.GetStatusPOptions options) |
List<alluxio.wire.SyncPointInfo> |
getSyncPathList()
get the list of paths that are currently being actively synced.
|
List<alluxio.client.file.URIStatus> |
listStatus(alluxio.AlluxioURI path,
alluxio.grpc.ListStatusPOptions options) |
void |
mount(alluxio.AlluxioURI alluxioPath,
alluxio.AlluxioURI ufsPath,
alluxio.grpc.MountPOptions options)
Mounts the given UFS path under the given Alluxio path.
|
void |
rename(alluxio.AlluxioURI src,
alluxio.AlluxioURI dst)
Renames a file or a directory.
|
void |
rename(alluxio.AlluxioURI src,
alluxio.AlluxioURI dst,
alluxio.grpc.RenamePOptions options)
Renames a file or a directory.
|
void |
scheduleAsyncPersist(alluxio.AlluxioURI path,
alluxio.grpc.ScheduleAsyncPersistencePOptions options)
Schedules the async persistence of the given file.
|
void |
setAcl(alluxio.AlluxioURI path,
alluxio.grpc.SetAclAction action,
List<alluxio.security.authorization.AclEntry> entries,
alluxio.grpc.SetAclPOptions options)
Sets the ACL for a path.
|
void |
setAttribute(alluxio.AlluxioURI path,
alluxio.grpc.SetAttributePOptions options)
Sets the file or directory attributes.
|
void |
startSync(alluxio.AlluxioURI path)
Start the active syncing process for a specified path.
|
void |
stopSync(alluxio.AlluxioURI path)
Stop the active syncing process for a specified path.
|
void |
unmount(alluxio.AlluxioURI alluxioPath)
Unmounts the given Alluxio path.
|
void |
updateMount(alluxio.AlluxioURI alluxioPath,
alluxio.grpc.MountPOptions options)
Updates options of a mount point for the given Alluxio path.
|
void |
updateUfsMode(alluxio.AlluxioURI ufsUri,
alluxio.grpc.UpdateUfsModePOptions options)
Updates the operation mode for the given ufs path.
|
List<alluxio.AlluxioURI> checkConsistency(alluxio.AlluxioURI path, alluxio.grpc.CheckConsistencyPOptions options) throws alluxio.exception.status.AlluxioStatusException
path - the root of the subtree to checkoptions - method optionsalluxio.exception.status.AlluxioStatusExceptionvoid createDirectory(alluxio.AlluxioURI path,
alluxio.grpc.CreateDirectoryPOptions options)
throws alluxio.exception.status.AlluxioStatusException
path - the directory pathoptions - method optionsalluxio.exception.status.AlreadyExistsException - if the directory already existsalluxio.exception.status.AlluxioStatusExceptionalluxio.client.file.URIStatus createFile(alluxio.AlluxioURI path,
alluxio.grpc.CreateFilePOptions options)
throws alluxio.exception.status.AlluxioStatusException
path - the file pathoptions - method optionsalluxio.exception.status.AlreadyExistsException - if the file already existsalluxio.exception.status.AlluxioStatusExceptionvoid completeFile(alluxio.AlluxioURI path,
alluxio.grpc.CompleteFilePOptions options)
throws alluxio.exception.status.AlluxioStatusException
path - the file pathoptions - the method optionsalluxio.exception.status.AlluxioStatusExceptionvoid delete(alluxio.AlluxioURI path,
alluxio.grpc.DeletePOptions options)
throws alluxio.exception.status.AlluxioStatusException
path - the path to deleteoptions - method optionsalluxio.exception.status.AlluxioStatusExceptionvoid free(alluxio.AlluxioURI path,
alluxio.grpc.FreePOptions options)
throws alluxio.exception.status.AlluxioStatusException
path - the path to freeoptions - method optionsalluxio.exception.status.NotFoundException - if the path does not existalluxio.exception.status.AlluxioStatusExceptionString getFilePath(long fileId) throws alluxio.exception.status.AlluxioStatusException
fileId - a file idalluxio.exception.status.AlluxioStatusExceptionalluxio.client.file.URIStatus getStatus(alluxio.AlluxioURI path,
alluxio.grpc.GetStatusPOptions options)
throws alluxio.exception.status.AlluxioStatusException
path - the file pathoptions - the getStatus optionsalluxio.exception.status.NotFoundException - if the path does not existalluxio.exception.status.AlluxioStatusExceptionlong getNewBlockIdForFile(alluxio.AlluxioURI path)
throws alluxio.exception.status.AlluxioStatusException
path - the file pathalluxio.exception.status.AlluxioStatusExceptionList<alluxio.wire.SyncPointInfo> getSyncPathList() throws alluxio.exception.status.AlluxioStatusException
alluxio.exception.status.AlluxioStatusExceptionList<alluxio.client.file.URIStatus> listStatus(alluxio.AlluxioURI path, alluxio.grpc.ListStatusPOptions options) throws alluxio.exception.status.AlluxioStatusException
path - the path to listoptions - the listStatus optionsalluxio.exception.status.NotFoundException - if the path does not existalluxio.exception.status.AlluxioStatusExceptionvoid mount(alluxio.AlluxioURI alluxioPath,
alluxio.AlluxioURI ufsPath,
alluxio.grpc.MountPOptions options)
throws alluxio.exception.status.AlluxioStatusException
alluxioPath - the Alluxio pathufsPath - the UFS pathoptions - mount optionsalluxio.exception.status.AlluxioStatusExceptionvoid updateMount(alluxio.AlluxioURI alluxioPath,
alluxio.grpc.MountPOptions options)
throws alluxio.exception.status.AlluxioStatusException
alluxioPath - the Alluxio pathoptions - mount optionsalluxio.exception.status.AlluxioStatusExceptionMap<String,alluxio.wire.MountPointInfo> getMountTable() throws alluxio.exception.status.AlluxioStatusException
MountPointInfoalluxio.exception.status.AlluxioStatusExceptionvoid rename(alluxio.AlluxioURI src,
alluxio.AlluxioURI dst)
throws alluxio.exception.status.AlluxioStatusException
src - the path to renamedst - new file pathalluxio.exception.status.NotFoundException - if the path does not existalluxio.exception.status.AlluxioStatusExceptionvoid rename(alluxio.AlluxioURI src,
alluxio.AlluxioURI dst,
alluxio.grpc.RenamePOptions options)
throws alluxio.exception.status.AlluxioStatusException
src - the path to renamedst - new file pathoptions - rename optionsalluxio.exception.status.NotFoundException - if the path does not existalluxio.exception.status.AlluxioStatusExceptionvoid setAcl(alluxio.AlluxioURI path,
alluxio.grpc.SetAclAction action,
List<alluxio.security.authorization.AclEntry> entries,
alluxio.grpc.SetAclPOptions options)
throws alluxio.exception.status.AlluxioStatusException
path - the file or directory pathaction - the set action to performentries - the ACL entries to useoptions - the options for setting ACLalluxio.exception.status.NotFoundException - if the path does not existalluxio.exception.status.AlluxioStatusExceptionvoid setAttribute(alluxio.AlluxioURI path,
alluxio.grpc.SetAttributePOptions options)
throws alluxio.exception.status.AlluxioStatusException
path - the file or directory pathoptions - the file or directory attribute options to be setalluxio.exception.status.NotFoundException - if the path does not existalluxio.exception.status.AlluxioStatusExceptionvoid startSync(alluxio.AlluxioURI path)
throws alluxio.exception.status.AlluxioStatusException
path - the file or directory to be syncedalluxio.exception.status.AlluxioStatusExceptionvoid stopSync(alluxio.AlluxioURI path)
throws alluxio.exception.status.AlluxioStatusException
path - the file or directory to stop syncingalluxio.exception.status.AlluxioStatusExceptionvoid scheduleAsyncPersist(alluxio.AlluxioURI path,
alluxio.grpc.ScheduleAsyncPersistencePOptions options)
throws alluxio.exception.status.AlluxioStatusException
path - the file pathoptions - options to use when scheduling the persistalluxio.exception.status.AlluxioStatusExceptionvoid unmount(alluxio.AlluxioURI alluxioPath)
throws alluxio.exception.status.AlluxioStatusException
alluxioPath - the Alluxio pathalluxio.exception.status.AlluxioStatusExceptionvoid updateUfsMode(alluxio.AlluxioURI ufsUri,
alluxio.grpc.UpdateUfsModePOptions options)
throws alluxio.exception.status.AlluxioStatusException
ufsUri - the ufs pathoptions - the options to update ufs operation modealluxio.exception.status.AlluxioStatusExceptionCopyright © 2024. All Rights Reserved.