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 |
closeSession() |
void |
closeSession(String sessionHandleString) |
void |
closeSession(String sessionHandleString,
String outputMediaType)
Close a Session
|
List<UserSessionInfo> |
getSessionList() |
String |
getSessionParam(String param) |
String |
getSessionParam(String sessionHandleString,
String param) |
String |
openSession() |
String |
openSession(String database) |
String |
openSession(String userName,
String password) |
String |
openSession(String userName,
String password,
String database) |
String |
openSession(String userName,
String password,
String database,
String outputMediaType) |
javax.ws.rs.core.Response |
openSessionReturnResponse(String userName,
String password,
String database,
String outputMediaType)
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
|
exec, exec, exec, exec, exec, execDELETE, execGET, execPOST, execPUT, getAdminUrl, getBaseUrl, getClientDir, getCurrentDB, getJobConfUrl, getPassword, getServerDir, getServerHdfsUrl, getServerLens, getServiceURI, getSessionHandleString, getStartDate, getUserName, init, sendForm, sendQuery
public SessionHelper()
public SessionHelper(String envFileName)
public javax.ws.rs.core.Response openSessionReturnResponse(String userName, String password, String database, String outputMediaType) throws LensException
userName
- password
- database
- LensException
public String openSession(String database) throws LensException
LensException
public String openSession() throws LensException
LensException
public String openSession(String userName, String password, String database, String outputMediaType) throws LensException
LensException
public String openSession(String userName, String password) throws LensException
LensException
public String openSession(String userName, String password, String database) throws LensException
LensException
public void closeSession(String sessionHandleString, String outputMediaType) throws LensException
sessionHandleString
- LensException
public void closeSession(String sessionHandleString) throws LensException
LensException
public void closeSession() throws LensException
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 LensException
path
- sessionHandleString
- LensException
public void addResourcesJar(String path) throws LensException
LensException
public void removeResourcesJar(String path, String sessionHandleString) throws LensException
path
- sessionHandleString
- LensException
public void removeResourcesJar(String path) throws LensException
LensException
public String getSessionParam(String sessionHandleString, String param) throws Exception
Exception
public List<UserSessionInfo> getSessionList() throws Exception
Exception
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.