public class SessionHelper extends ServiceManagerHelper
Constructor and Description |
---|
SessionHelper() |
SessionHelper(String envFileName) |
Modifier and Type | Method and Description |
---|---|
void |
addResourcesJar(String path) |
void |
addResourcesJar(String path,
String sessionHandleString)
Add resources to a session
|
void |
closeNewSession(String sessionHandleString)
Close a Session
|
String |
openNewSession(String userName,
String password) |
String |
openNewSession(String userName,
String password,
String database)
Open a New Session
|
void |
removeResourcesJar(String path) |
void |
removeResourcesJar(String path,
String sessionHandleString)
Remove resources from a session
|
void |
setAndValidateParam(Map<String,String> map) |
void |
setAndValidateParam(Map<String,String> map,
String sessionHandleString) |
void |
setAndValidateParam(String param,
String value) |
void |
setAndValidateParam(String sessionHandleString,
String param,
String value)
Set and Validate Session Params
|
closeSession, exec, exec, exec, exec, exec, execDELETE, execGET, execPOST, execPUT, getAdminUrl, getBaseUrl, getClientDir, getCurrentDB, getPassword, getServerDir, getServerHdfsUrl, getServerLens, getServiceURI, getSessionHandle, getSessionHandleString, getUserName, init, openSession, openSession, sendForm, sendQuery
public SessionHelper()
public SessionHelper(String envFileName)
public String openNewSession(String userName, String password, String database) throws JAXBException, LensException
userName
- password
- database
- JAXBException
LensException
public String openNewSession(String userName, String password) throws JAXBException, LensException
JAXBException
LensException
public void closeNewSession(String sessionHandleString) throws JAXBException, LensException
sessionHandleString
- JAXBException
LensException
public void setAndValidateParam(String sessionHandleString, String param, String value) throws Exception
sessionHandleString
- param
- value
- Exception
public void setAndValidateParam(String param, String value) throws Exception
Exception
public void setAndValidateParam(Map<String,String> map, String sessionHandleString) throws Exception
Exception
public void setAndValidateParam(Map<String,String> map) throws Exception
Exception
public void addResourcesJar(String path, String sessionHandleString) throws JAXBException, LensException
path
- sessionHandleString
- JAXBException
LensException
public void addResourcesJar(String path) throws JAXBException, LensException
JAXBException
LensException
public void removeResourcesJar(String path, String sessionHandleString) throws JAXBException, LensException
path
- sessionHandleString
- JAXBException
LensException
public void removeResourcesJar(String path) throws JAXBException, LensException
JAXBException
LensException
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.