public final class UnderFileSystemConfiguration extends Object
RuntimeException
if the key is not found in both configurations..Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(PropertyKey key) |
static UnderFileSystemConfiguration |
defaults() |
Map<String,String> |
getUserSpecifiedConf() |
String |
getValue(PropertyKey key)
Gets the value of the given key in the given UFS configuration or the global configuration
(in case the key is not found in the UFS configuration), throw
RuntimeException if the
key is not found in both configurations. |
boolean |
isReadOnly() |
boolean |
isShared() |
UnderFileSystemConfiguration |
setReadOnly(boolean readOnly) |
UnderFileSystemConfiguration |
setShared(boolean shared) |
UnderFileSystemConfiguration |
setUserSpecifiedConf(Map<String,String> ufsConf) |
Map<String,String> |
toMap() |
Map<String,String> |
toUserPropertyMap(ConfigurationValueOptions options) |
public static UnderFileSystemConfiguration defaults()
public boolean containsKey(PropertyKey key)
key
- property keypublic String getValue(PropertyKey key)
RuntimeException
if the
key is not found in both configurations.key
- property keypublic Map<String,String> getUserSpecifiedConf()
public Map<String,String> toMap()
public boolean isReadOnly()
UnderFileSystem
public boolean isShared()
public UnderFileSystemConfiguration setReadOnly(boolean readOnly)
readOnly
- whether only read operations are permittedpublic UnderFileSystemConfiguration setShared(boolean shared)
shared
- whether the mounted UFS is shared with all Alluxio userspublic UnderFileSystemConfiguration setUserSpecifiedConf(Map<String,String> ufsConf)
ufsConf
- the user-specified UFS configuration as a mappublic Map<String,String> toUserPropertyMap(ConfigurationValueOptions options)
options
- options for formatting the configuration valuesCopyright © 2023. All Rights Reserved.