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.
|
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() |
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 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 locationCopyright © 2023. All Rights Reserved.