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

org.apache.lens.client
Class LensConnectionParams

java.lang.Object
  extended by org.apache.lens.client.LensConnectionParams

public class LensConnectionParams
extends Object

Top level class which encapsulates connections parameters required for lens connection.


Constructor Summary
LensConnectionParams()
          Construct parameters required to connect to lens server using values in lens-client-site.xml
LensConnectionParams(LensClientConfig conf)
          Construct parameters required to connect to lens server from values passed in configuration.
 
Method Summary
 String getBaseConnectionUrl()
           
 LensClientConfig getConf()
           
 String getDbName()
          Gets the Database to which lens client should connect to.
 Map<String,String> getLensConfs()
           
 Map<String,String> getLensVars()
           
 String getMetastoreResourcePath()
           
 long getQueryPollInterval()
           
 String getQueryResourcePath()
           
 LensConf getSessionConf()
           
 String getSessionResourcePath()
           
 Map<String,String> getSessionVars()
           
 String getUser()
           
 void setBaseUrl(String baseUrl)
           
 void setDbName(String dbName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LensConnectionParams

public LensConnectionParams()
Construct parameters required to connect to lens server using values in lens-client-site.xml


LensConnectionParams

public LensConnectionParams(LensClientConfig conf)
Construct parameters required to connect to lens server from values passed in configuration.

Parameters:
conf - from which connection parameters are defined.
Method Detail

getDbName

public String getDbName()
Gets the Database to which lens client should connect to.

Returns:
database to connect to

getLensConfs

public Map<String,String> getLensConfs()

getLensVars

public Map<String,String> getLensVars()

getSessionVars

public Map<String,String> getSessionVars()

setDbName

public void setDbName(String dbName)

getBaseConnectionUrl

public String getBaseConnectionUrl()

getConf

public LensClientConfig getConf()

getUser

public String getUser()

getSessionResourcePath

public String getSessionResourcePath()

getQueryResourcePath

public String getQueryResourcePath()

getMetastoreResourcePath

public String getMetastoreResourcePath()

getQueryPollInterval

public long getQueryPollInterval()

getSessionConf

public LensConf getSessionConf()

toString

public String toString()
Overrides:
toString in class Object

setBaseUrl

public void setBaseUrl(String baseUrl)


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