@NotThreadSafe @PublicApi public final class UnderFileSystemConfiguration extends InstancedConfiguration
Ufs configuration properties, including ufs specific configuration and global configuration.
The order of precedence for properties is:
This class extends InstancedConfiguration
. Variable substitution and aliases
are supported.
mProperties
Modifier and Type | Method and Description |
---|---|
UnderFileSystemConfiguration |
createMountSpecificConf(Map<String,String> mountConf)
Creates a new instance from the current configuration and adds in new properties.
|
static UnderFileSystemConfiguration |
defaults(AlluxioConfiguration alluxioConf) |
Map<String,String> |
getMountSpecificConf() |
boolean |
isReadOnly() |
boolean |
isShared() |
UnderFileSystemConfiguration |
setReadOnly(boolean readOnly) |
UnderFileSystemConfiguration |
setShared(boolean shared) |
Map<String,String> |
toUserPropertyMap(ConfigurationValueOptions options) |
clusterDefaultsLoaded, copyProperties, defaults, get, get, getBoolean, getBytes, getClass, getDouble, getDuration, getEnum, getFloat, getInt, getList, getLong, getMs, getNestedProperties, getSource, hash, isSet, isSetByUser, keySet, merge, set, set, toMap, unset, userKeySet, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOrDefault, getOrDefault, toMap
public static UnderFileSystemConfiguration defaults(AlluxioConfiguration alluxioConf)
alluxioConf
- Alluxio configurationpublic Map<String,String> getMountSpecificConf()
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 createMountSpecificConf(Map<String,String> mountConf)
mountConf
- the mount specific configuration mappublic Map<String,String> toUserPropertyMap(ConfigurationValueOptions options)
options
- options for formatting the configuration valuesCopyright © 2023. All Rights Reserved.