This project has retired. For details please refer to its Attic page.
LensClientConfig (Lens 2.0.1-beta-incubating API)

org.apache.lens.client
Class LensClientConfig

java.lang.Object
  extended by org.apache.hadoop.conf.Configuration
      extended by org.apache.lens.client.LensClientConfig
All Implemented Interfaces:
Iterable<Map.Entry<String,String>>, org.apache.hadoop.io.Writable

public class LensClientConfig
extends org.apache.hadoop.conf.Configuration

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

CLIENT_PFX

public static final String CLIENT_PFX
The Constant CLIENT_PFX.

See Also:
Constant Field Values

DBNAME_KEY

public static final String DBNAME_KEY
The Constant DBNAME_KEY.

See Also:
Constant Field Values

DEFAULT_DBNAME_VALUE

public static final String DEFAULT_DBNAME_VALUE
The Constant DEFAULT_DBNAME_VALUE.

See Also:
Constant Field Values

DEFAULT_USER_NAME

public static final String DEFAULT_USER_NAME
The Constant DEFAULT_USER_NAME.

See Also:
Constant Field Values

DEFAULT_SESSION_RESOURCE_PATH

public static final String DEFAULT_SESSION_RESOURCE_PATH
The Constant DEFAULT_SESSION_RESOURCE_PATH.

See Also:
Constant Field Values

SERVER_BASE_URL

public static final String SERVER_BASE_URL
The Constant SERVER_BASE_URL.

See Also:
Constant Field Values

DEFAULT_SERVER_BASE_URL

public static final String DEFAULT_SERVER_BASE_URL
The Constant DEFAULT_SERVER_BASE_URL.

See Also:
Constant Field Values

SESSION_CLUSTER_USER

public static final String SESSION_CLUSTER_USER
The Constant SESSION_CLUSTER_USER.

See Also:
Constant Field Values
Constructor Detail

LensClientConfig

public LensClientConfig()
Instantiates a new lens client config.

Method Detail

getUser

public String getUser()
Get the username from config

Returns:
Returns lens client user name

setUser

public void setUser(String user)

getBaseURL

public String getBaseURL()
Returns the configured lens server url

Returns:
server url

getLensDatabase

public String getLensDatabase()
Returns the configured lens server database client wants to access

Returns:
database returns database to connect, defaults to 'default'

getSessionResourcePath

public String getSessionResourcePath()
Returns the session service path on lens server

Returns:
web app fragment pointing to session service, defaults to session

getQueryResourcePath

public String getQueryResourcePath()
Returns the query service path on lens server

Returns:
web app fragment pointing to query service, defaults to queryapi

setLensDatabase

public void setLensDatabase(String dbName)
Sets the database to connect on lens server

Parameters:
dbName - database to connect to

getQueryPollInterval

public long getQueryPollInterval()

getMetastoreResourcePath

public String getMetastoreResourcePath()

setBaseUrl

public void setBaseUrl(String baseUrl)


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.