|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.conf.Configuration org.apache.lens.client.LensClientConfig
public class LensClientConfig
Configuration Class which is used in the lens client.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.hadoop.conf.Configuration |
---|
org.apache.hadoop.conf.Configuration.DeprecationDelta, org.apache.hadoop.conf.Configuration.IntegerRanges |
Field Summary | |
---|---|
static String |
CLIENT_PFX
The Constant CLIENT_PFX. |
static String |
DBNAME_KEY
The Constant DBNAME_KEY. |
static String |
DEFAULT_DBNAME_VALUE
The Constant DEFAULT_DBNAME_VALUE. |
static String |
DEFAULT_SERVER_BASE_URL
The Constant DEFAULT_SERVER_BASE_URL. |
static String |
DEFAULT_SESSION_RESOURCE_PATH
The Constant DEFAULT_SESSION_RESOURCE_PATH. |
static String |
DEFAULT_USER_NAME
The Constant DEFAULT_USER_NAME. |
static String |
SERVER_BASE_URL
The Constant SERVER_BASE_URL. |
static String |
SESSION_CLUSTER_USER
The Constant SESSION_CLUSTER_USER. |
Constructor Summary | |
---|---|
LensClientConfig()
Instantiates a new lens client config. |
Method Summary | |
---|---|
String |
getBaseURL()
Returns the configured lens server url |
String |
getLensDatabase()
Returns the configured lens server database client wants to access |
String |
getMetastoreResourcePath()
|
long |
getQueryPollInterval()
|
String |
getQueryResourcePath()
Returns the query service path on lens server |
String |
getSessionResourcePath()
Returns the session service path on lens server |
String |
getUser()
Get the username from config |
void |
setBaseUrl(String baseUrl)
|
void |
setLensDatabase(String dbName)
Sets the database to connect on lens server |
void |
setUser(String user)
|
Methods inherited from class org.apache.hadoop.conf.Configuration |
---|
addDefaultResource, addDeprecation, addDeprecation, addDeprecation, addDeprecation, addDeprecations, addResource, addResource, addResource, addResource, addResource, addResource, clear, dumpConfiguration, dumpDeprecatedKeys, get, get, getBoolean, getClass, getClass, getClassByName, getClassByNameOrNull, getClasses, getClassLoader, getConfResourceAsInputStream, getConfResourceAsReader, getDouble, getEnum, getFile, getFinalParameters, getFloat, getInstances, getInt, getInts, getLocalPath, getLong, getLongBytes, getPattern, getPropertySources, getRange, getRaw, getResource, getSocketAddr, getStringCollection, getStrings, getStrings, getTimeDuration, getTrimmed, getTrimmed, getTrimmedStringCollection, getTrimmedStrings, getTrimmedStrings, getValByRegex, hasWarnedDeprecation, isDeprecated, iterator, main, readFields, reloadConfiguration, set, set, setBoolean, setBooleanIfUnset, setClass, setClassLoader, setDouble, setEnum, setFloat, setIfUnset, setInt, setLong, setPattern, setQuietMode, setSocketAddr, setStrings, setTimeDuration, size, toString, unset, updateConnectAddr, write, writeXml, writeXml |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String CLIENT_PFX
public static final String DBNAME_KEY
public static final String DEFAULT_DBNAME_VALUE
public static final String DEFAULT_USER_NAME
public static final String DEFAULT_SESSION_RESOURCE_PATH
public static final String SERVER_BASE_URL
public static final String DEFAULT_SERVER_BASE_URL
public static final String SESSION_CLUSTER_USER
Constructor Detail |
---|
public LensClientConfig()
Method Detail |
---|
public String getUser()
public void setUser(String user)
public String getBaseURL()
public String getLensDatabase()
public String getSessionResourcePath()
public String getQueryResourcePath()
public void setLensDatabase(String dbName)
dbName
- database to connect topublic long getQueryPollInterval()
public String getMetastoreResourcePath()
public void setBaseUrl(String baseUrl)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |