|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lens.client.LensConnection
public class LensConnection
Top level client connection class which is used to connect to a lens server.
| Constructor Summary | |
|---|---|
LensConnection(LensConnectionParams params)
Construct a connection to lens server specified by connection parameters. |
|
LensConnection(LensConnectionParams params,
LensSessionHandle sessionHandle)
Construct a connection to lens server specified by connection parameters with an already established session |
|
| Method Summary | |
|---|---|
APIResult |
addResourceToConnection(String type,
String resourcePath)
Adds the resource to connection. |
APIResult |
attachDatabaseToSession()
Attach database to session. |
APIResult |
close()
Close. |
List<String> |
getConnectionParams()
|
List<String> |
getConnectionParams(String key)
Gets the connection params. |
boolean |
isOpen()
Check if the connection is opened. |
List<String> |
listResourcesFromConnection(String type)
List resources from session |
LensSessionHandle |
open(String password)
Open. |
APIResult |
removeResourceFromConnection(String type,
String resourcePath)
Removes the resource from connection. |
APIResult |
setConnectionParams(String key,
String value)
Sets the connection params. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LensConnection(LensConnectionParams params)
params - parameters to be used for creating a connection
public LensConnection(LensConnectionParams params,
LensSessionHandle sessionHandle)
params - parameters to be used for creating a connection| Method Detail |
|---|
public boolean isOpen()
public LensSessionHandle open(String password)
password - the password
public APIResult attachDatabaseToSession()
public APIResult close()
public APIResult addResourceToConnection(String type,
String resourcePath)
type - the typeresourcePath - the resource path
public APIResult removeResourceFromConnection(String type,
String resourcePath)
type - the typeresourcePath - the resource path
public List<String> listResourcesFromConnection(String type)
type - type of resource
public APIResult setConnectionParams(String key,
String value)
key - the keyvalue - the value
public List<String> getConnectionParams()
public List<String> getConnectionParams(String key)
key - the key
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||