public interface UfsManager extends Closeable
Modifier and Type | Interface and Description |
---|---|
static class |
UfsManager.UfsClient
Container for a UFS and the URI for that UFS.
|
Modifier and Type | Method and Description |
---|---|
void |
addMount(long mountId,
AlluxioURI ufsUri,
UnderFileSystemConfiguration ufsConf)
Keeps track of a mount id and maps it to its URI in Alluxio and configuration.
|
void |
addMountWithRecorder(long mountId,
AlluxioURI ufsUri,
UnderFileSystemConfiguration ufsConf,
Recorder recorder)
Keeps track of a mount id and maps it to its URI in Alluxio and configuration and records
the execution process.
|
UfsManager.UfsClient |
get(long mountId)
Gets UFS information from the manager if this mount ID exists, or throws exception otherwise.
|
UfsManager.UfsClient |
getJournal(URI location) |
UfsManager.UfsClient |
getRoot() |
boolean |
hasMount(long mountId)
Checks if a mountId exists.
|
void |
removeMount(long mountId)
Removes the association from a mount id to a UFS instance.
|
void addMount(long mountId, AlluxioURI ufsUri, UnderFileSystemConfiguration ufsConf)
mountId
- the mount idufsUri
- the UFS pathufsConf
- the UFS configurationvoid addMountWithRecorder(long mountId, AlluxioURI ufsUri, UnderFileSystemConfiguration ufsConf, Recorder recorder)
mountId
- the mount idufsUri
- the UFS pathufsConf
- the UFS configurationrecorder
- recorder used to record the detailed execution processvoid removeMount(long mountId)
mountId
- the mount idUfsManager.UfsClient get(long mountId) throws NotFoundException, UnavailableException
mountId
- the mount idNotFoundException
- if mount id is not found in mount tableUnavailableException
- if master is not available to query for mount tableUfsManager.UfsClient getRoot()
UfsManager.UfsClient getJournal(URI location)
location
- the journal locationboolean hasMount(long mountId)
mountId
- the mountId to checkCopyright © 2023. All Rights Reserved.