|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.fs.viewfs.ConfigUtil
public class ConfigUtil
Utilities for config variables of the viewFs See ViewFs
Constructor Summary | |
---|---|
ConfigUtil()
|
Method Summary | |
---|---|
static void |
addLink(Configuration conf,
String mountTableName,
String src,
URI target)
Add a link to the config for the specified mount table |
static void |
addLink(Configuration conf,
String src,
URI target)
Add a link to the config for the default mount table |
static String |
getConfigViewFsPrefix()
Get the config variable prefix for the default mount table |
static String |
getConfigViewFsPrefix(String mountTableName)
Get the config variable prefix for the specified mount table |
static String |
getHomeDirValue(Configuration conf)
Get the value of the home dir conf value for default mount table |
static String |
getHomeDirValue(Configuration conf,
String mountTableName)
Get the value of the home dir conf value for specfied mount table |
static void |
setHomeDirConf(Configuration conf,
String homedir)
Add config variable for homedir for default mount table |
static void |
setHomeDirConf(Configuration conf,
String mountTableName,
String homedir)
Add config variable for homedir the specified mount table |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigUtil()
Method Detail |
---|
public static String getConfigViewFsPrefix(String mountTableName)
mountTableName
- - the name of the mount table
public static String getConfigViewFsPrefix()
public static void addLink(Configuration conf, String mountTableName, String src, URI target)
conf
- - add the link to this confmountTableName
- src
- - the src path nametarget
- - the target URI linkpublic static void addLink(Configuration conf, String src, URI target)
conf
- - add the link to this confsrc
- - the src path nametarget
- - the target URI linkpublic static void setHomeDirConf(Configuration conf, String homedir)
conf
- - add to this confhomedir
- - the home dir path starting with slashpublic static void setHomeDirConf(Configuration conf, String mountTableName, String homedir)
conf
- - add to this confhomedir
- - the home dir path starting with slashpublic static String getHomeDirValue(Configuration conf)
conf
- - from this conf
public static String getHomeDirValue(Configuration conf, String mountTableName)
conf
- - from this confmountTableName
- - the mount table
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |