@NotThreadSafe public final class FileSystemMasterClientServiceHandler extends Object implements FileSystemMasterClientService.Iface
Modifier and Type | Method and Description |
---|---|
CheckConsistencyTResponse |
checkConsistency(String path,
CheckConsistencyTOptions options)
Checks the consistency of the files and directores with the path as the root of the subtree
|
CompleteFileTResponse |
completeFile(String path,
CompleteFileTOptions options)
Marks a file as completed.
|
CreateDirectoryTResponse |
createDirectory(String path,
CreateDirectoryTOptions options)
Creates a directory.
|
CreateFileTResponse |
createFile(String path,
CreateFileTOptions options)
Creates a file.
|
FreeTResponse |
free(String path,
boolean recursive,
FreeTOptions options)
Frees the given file or directory from Alluxio.
|
GetFilePathTResponse |
getFilePath(GetFilePathTOptions options)
Returns the file path of a file id.
|
GetMountTableTResponse |
getMountTable()
Returns a map from each Alluxio path to information of corresponding mount point
|
GetNewBlockIdForFileTResponse |
getNewBlockIdForFile(String path,
GetNewBlockIdForFileTOptions options)
Generates a new block id for the given file.
|
GetServiceVersionTResponse |
getServiceVersion(GetServiceVersionTOptions options)
Returns the version of the master service.
|
GetStatusTResponse |
getStatus(String path,
GetStatusTOptions options)
Returns the status of the file or directory.
|
ListStatusTResponse |
listStatus(String path,
ListStatusTOptions options)
If the path points to a file, the method returns a singleton with its file information.
|
LoadMetadataTResponse |
loadMetadata(String alluxioPath,
boolean recursive,
LoadMetadataTOptions options)
Deprecated.
since version 1.1 and will be removed in version 2.0
|
MountTResponse |
mount(String alluxioPath,
String ufsPath,
MountTOptions options)
Creates a new "mount point", mounts the given UFS path in the Alluxio namespace at the given
path.
|
DeleteTResponse |
remove(String path,
boolean recursive,
DeleteTOptions options)
Deletes a file or a directory and returns whether the remove operation succeeded.
|
RenameTResponse |
rename(String srcPath,
String dstPath,
RenameTOptions options)
Renames a file or a directory.
|
ScheduleAsyncPersistenceTResponse |
scheduleAsyncPersistence(String path,
ScheduleAsyncPersistenceTOptions options)
Schedules async persistence.
|
SetAttributeTResponse |
setAttribute(String path,
SetAttributeTOptions options)
Sets file or directory attributes.
|
UnmountTResponse |
unmount(String alluxioPath,
UnmountTOptions options)
Deletes an existing "mount point", voiding the Alluxio namespace at the given path.
|
UpdateUfsModeTResponse |
updateUfsMode(String ufsPath,
UpdateUfsModeTOptions options)
Updates the ufs mode for a ufs path under one or more mount points.
|
public GetServiceVersionTResponse getServiceVersion(GetServiceVersionTOptions options)
AlluxioService.Iface
getServiceVersion
in interface AlluxioService.Iface
options
- the method optionspublic CheckConsistencyTResponse checkConsistency(String path, CheckConsistencyTOptions options) throws AlluxioTException
FileSystemMasterClientService.Iface
checkConsistency
in interface FileSystemMasterClientService.Iface
path
- the root of the subtree to checkoptions
- the method optionsAlluxioTException
public CompleteFileTResponse completeFile(String path, CompleteFileTOptions options) throws AlluxioTException
FileSystemMasterClientService.Iface
completeFile
in interface FileSystemMasterClientService.Iface
path
- the path of the fileoptions
- the method optionsAlluxioTException
public CreateDirectoryTResponse createDirectory(String path, CreateDirectoryTOptions options) throws AlluxioTException
FileSystemMasterClientService.Iface
createDirectory
in interface FileSystemMasterClientService.Iface
path
- the path of the directoryoptions
- the method optionsAlluxioTException
public CreateFileTResponse createFile(String path, CreateFileTOptions options) throws AlluxioTException
FileSystemMasterClientService.Iface
createFile
in interface FileSystemMasterClientService.Iface
path
- the path of the fileoptions
- the options for creating the fileAlluxioTException
public FreeTResponse free(String path, boolean recursive, FreeTOptions options) throws AlluxioTException
FileSystemMasterClientService.Iface
free
in interface FileSystemMasterClientService.Iface
path
- the path of the file or directoryrecursive
- whether to free recursivelyoptions
- the options for freeing a pathAlluxioTException
public GetNewBlockIdForFileTResponse getNewBlockIdForFile(String path, GetNewBlockIdForFileTOptions options) throws AlluxioTException
FileSystemMasterClientService.Iface
getNewBlockIdForFile
in interface FileSystemMasterClientService.Iface
path
- the path of the fileoptions
- the method optionsAlluxioTException
public GetFilePathTResponse getFilePath(GetFilePathTOptions options) throws AlluxioTException
FileSystemMasterClientService.Iface
getFilePath
in interface FileSystemMasterClientService.Iface
options
- the file idAlluxioTException
public GetStatusTResponse getStatus(String path, GetStatusTOptions options) throws AlluxioTException
FileSystemMasterClientService.Iface
getStatus
in interface FileSystemMasterClientService.Iface
path
- the path of the file or directoryoptions
- the method optionsAlluxioTException
public ListStatusTResponse listStatus(String path, ListStatusTOptions options) throws AlluxioTException
FileSystemMasterClientService.Iface
listStatus
in interface FileSystemMasterClientService.Iface
path
- the path of the file or directoryoptions
- listStatus optionsAlluxioTException
@Deprecated public LoadMetadataTResponse loadMetadata(String alluxioPath, boolean recursive, LoadMetadataTOptions options) throws AlluxioTException
loadMetadata
in interface FileSystemMasterClientService.Iface
alluxioPath
- the path of the under file systemrecursive
- whether to load metadata recursivelyoptions
- the method optionsAlluxioTException
public MountTResponse mount(String alluxioPath, String ufsPath, MountTOptions options) throws AlluxioTException
FileSystemMasterClientService.Iface
mount
in interface FileSystemMasterClientService.Iface
alluxioPath
- the path of alluxio mount pointufsPath
- the path of the under file systemoptions
- the options for creating the mount pointAlluxioTException
public GetMountTableTResponse getMountTable() throws AlluxioTException
FileSystemMasterClientService.Iface
getMountTable
in interface FileSystemMasterClientService.Iface
AlluxioTException
public DeleteTResponse remove(String path, boolean recursive, DeleteTOptions options) throws AlluxioTException
FileSystemMasterClientService.Iface
remove
in interface FileSystemMasterClientService.Iface
path
- the path of the file or directoryrecursive
- whether to remove recursivelyoptions
- the options for deleting the fileAlluxioTException
public RenameTResponse rename(String srcPath, String dstPath, RenameTOptions options) throws AlluxioTException
FileSystemMasterClientService.Iface
rename
in interface FileSystemMasterClientService.Iface
srcPath
- the source path of the file or directorydstPath
- the desination path of the fileoptions
- the method optionsAlluxioTException
public ScheduleAsyncPersistenceTResponse scheduleAsyncPersistence(String path, ScheduleAsyncPersistenceTOptions options) throws AlluxioTException
FileSystemMasterClientService.Iface
scheduleAsyncPersistence
in interface FileSystemMasterClientService.Iface
path
- the path of the fileoptions
- the method optionsAlluxioTException
public SetAttributeTResponse setAttribute(String path, SetAttributeTOptions options) throws AlluxioTException
FileSystemMasterClientService.Iface
setAttribute
in interface FileSystemMasterClientService.Iface
path
- the path of the file or directoryoptions
- the method optionsAlluxioTException
public UnmountTResponse unmount(String alluxioPath, UnmountTOptions options) throws AlluxioTException
FileSystemMasterClientService.Iface
unmount
in interface FileSystemMasterClientService.Iface
alluxioPath
- the path of the alluxio mount pointoptions
- the method optionsAlluxioTException
public UpdateUfsModeTResponse updateUfsMode(String ufsPath, UpdateUfsModeTOptions options) throws AlluxioTException
FileSystemMasterClientService.Iface
updateUfsMode
in interface FileSystemMasterClientService.Iface
ufsPath
- the ufs pathoptions
- the method optionsAlluxioTException
Copyright © 2023. All Rights Reserved.