public class ConfigUtil
extends java.lang.Object
ViewFs| Constructor | Description |
|---|---|
ConfigUtil() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
addLink(Configuration conf,
java.lang.String mountTableName,
java.lang.String src,
java.net.URI target) |
Add a link to the config for the specified mount table
|
static void |
addLink(Configuration conf,
java.lang.String src,
java.net.URI target) |
Add a link to the config for the default mount table
|
static void |
addLinkFallback(Configuration conf,
java.lang.String mountTableName,
java.net.URI target) |
Add a LinkFallback to the config for the specified mount table.
|
static void |
addLinkFallback(Configuration conf,
java.net.URI target) |
Add a LinkFallback to the config for the default mount table.
|
static void |
addLinkMerge(Configuration conf,
java.lang.String mountTableName,
java.net.URI[] targets) |
Add a LinkMerge to the config for the specified mount table.
|
static void |
addLinkMerge(Configuration conf,
java.net.URI[] targets) |
Add a LinkMerge to the config for the default mount table.
|
static void |
addLinkMergeSlash(Configuration conf,
java.lang.String mountTableName,
java.net.URI target) |
Add a LinkMergeSlash to the config for the specified mount table.
|
static void |
addLinkMergeSlash(Configuration conf,
java.net.URI target) |
Add a LinkMergeSlash to the config for the default mount table.
|
static void |
addLinkNfly(Configuration conf,
java.lang.String mountTableName,
java.lang.String src,
java.lang.String settings,
java.lang.String targets) |
Add nfly link to configuration for the given mount table.
|
static void |
addLinkNfly(Configuration conf,
java.lang.String mountTableName,
java.lang.String src,
java.lang.String settings,
java.net.URI... targets) |
Add nfly link to configuration for the given mount table.
|
static void |
addLinkNfly(Configuration conf,
java.lang.String src,
java.net.URI... targets) |
|
static void |
addLinkRegex(Configuration conf,
java.lang.String mountTableName,
java.lang.String srcRegex,
java.lang.String targetStr,
java.lang.String interceptorSettings) |
Add a LinkRegex to the config for the specified mount table.
|
static java.lang.String |
getConfigViewFsPrefix() |
Get the config variable prefix for the default mount table
|
static java.lang.String |
getConfigViewFsPrefix(java.lang.String mountTableName) |
Get the config variable prefix for the specified mount table
|
static java.lang.String |
getDefaultMountTableName(Configuration conf) |
Get the name of the default mount table to use.
|
static java.lang.String |
getHomeDirValue(Configuration conf) |
Get the value of the home dir conf value for default mount table
|
static java.lang.String |
getHomeDirValue(Configuration conf,
java.lang.String mountTableName) |
Get the value of the home dir conf value for specified mount table
|
static boolean |
isNestedMountPointSupported(Configuration conf) |
Check the bool config whether nested mount point is supported.
|
static void |
setHomeDirConf(Configuration conf,
java.lang.String homedir) |
Add config variable for homedir for default mount table
|
static void |
setHomeDirConf(Configuration conf,
java.lang.String mountTableName,
java.lang.String homedir) |
Add config variable for homedir the specified mount table
|
static void |
setIsNestedMountPointSupported(Configuration conf,
boolean isNestedMountPointSupported) |
Set the bool value isNestedMountPointSupported in config.
|
public static java.lang.String getConfigViewFsPrefix(java.lang.String mountTableName)
mountTableName - - the name of the mount tablepublic static java.lang.String getConfigViewFsPrefix()
public static void addLink(Configuration conf, java.lang.String mountTableName, java.lang.String src, java.net.URI target)
conf - - add the link to this confmountTableName - mountTable.src - - the src path nametarget - - the target URI linkpublic static void addLink(Configuration conf, java.lang.String src, java.net.URI target)
conf - - add the link to this confsrc - - the src path nametarget - - the target URI linkpublic static void addLinkMergeSlash(Configuration conf, java.lang.String mountTableName, java.net.URI target)
conf - configuration.mountTableName - mountTable.target - target.public static void addLinkMergeSlash(Configuration conf, java.net.URI target)
conf - configuration.target - targets.public static void addLinkFallback(Configuration conf, java.lang.String mountTableName, java.net.URI target)
conf - configuration.mountTableName - mountTable.target - targets.public static void addLinkFallback(Configuration conf, java.net.URI target)
conf - configuration.target - targets.public static void addLinkMerge(Configuration conf, java.lang.String mountTableName, java.net.URI[] targets)
conf - configuration.mountTableName - mountTable.targets - targets.public static void addLinkMerge(Configuration conf, java.net.URI[] targets)
conf - configuration.targets - targets array.public static void addLinkNfly(Configuration conf, java.lang.String mountTableName, java.lang.String src, java.lang.String settings, java.lang.String targets)
conf - configuration.mountTableName - mount table.src - src.settings - settings.targets - targets.public static void addLinkNfly(Configuration conf, java.lang.String mountTableName, java.lang.String src, java.lang.String settings, java.net.URI... targets)
conf - configuration.mountTableName - mount table.src - src.settings - settings.targets - targets.public static void addLinkNfly(Configuration conf, java.lang.String src, java.net.URI... targets)
public static void addLinkRegex(Configuration conf, java.lang.String mountTableName, java.lang.String srcRegex, java.lang.String targetStr, java.lang.String interceptorSettings)
conf - - get mountable config from this confmountTableName - - the mountable name of the regex config itemsrcRegex - - the src path regex expression that applies to this configtargetStr - - the string of target pathinterceptorSettings - - the serialized interceptor string to be
applied while resolving the mappingpublic static void setHomeDirConf(Configuration conf, java.lang.String homedir)
conf - - add to this confhomedir - - the home dir path starting with slashpublic static void setHomeDirConf(Configuration conf, java.lang.String mountTableName, java.lang.String homedir)
conf - - add to this confhomedir - - the home dir path starting with slashmountTableName - - the mount table.public static java.lang.String getHomeDirValue(Configuration conf)
conf - - from this confpublic static java.lang.String getHomeDirValue(Configuration conf, java.lang.String mountTableName)
conf - - from this confmountTableName - - the mount tablepublic static java.lang.String getDefaultMountTableName(Configuration conf)
Constants.CONFIG_VIEWFS_DEFAULT_MOUNT_TABLE_NAME_KEY is specified,
it's value is returned. Otherwise,
Constants.CONFIG_VIEWFS_DEFAULT_MOUNT_TABLE is returned.conf - Configuration to use.public static boolean isNestedMountPointSupported(Configuration conf)
conf - - from this confpublic static void setIsNestedMountPointSupported(Configuration conf, boolean isNestedMountPointSupported)
conf - - from this confisNestedMountPointSupported - - whether nested mount point is supportedCopyright © 2008–2025 Apache Software Foundation. All rights reserved.