|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SessionService
Field Summary | |
---|---|
static String |
NAME
Name of session service |
Method Summary | |
---|---|
void |
addResource(LensSessionHandle sessionHandle,
String type,
String path)
Adds the resource. |
int |
addResourceToAllServices(LensSessionHandle sessionHandle,
String type,
String path)
Adds the resource to all services. |
void |
closeSession(LensSessionHandle sessionHandle)
Close session. |
void |
deleteResource(LensSessionHandle sessionHandle,
String type,
String path)
Delete resource. |
List<String> |
getAllSessionParameters(LensSessionHandle sessionHandle,
boolean verbose,
String key)
Gets the all session parameters. |
List<String> |
listAllResources(LensSessionHandle sessionHandle,
String type)
Lists resources from the session service |
LensSessionHandle |
openSession(String username,
String password,
String database,
Map<String,String> configuration)
Open session. |
void |
restoreSession(LensSessionHandle sessionHandle,
String userName,
String password)
Restore session from previous instance of lens server. |
void |
setSessionParameter(LensSessionHandle sessionHandle,
String key,
String value)
Sets the session parameter. |
Field Detail |
---|
static final String NAME
Method Detail |
---|
LensSessionHandle openSession(String username, String password, String database, Map<String,String> configuration) throws LensException
username
- the usernamepassword
- the passworddatabase
- Set current database to the supplied valueconfiguration
- the configuration
LensException
- the lens exceptionvoid restoreSession(LensSessionHandle sessionHandle, String userName, String password) throws LensException
sessionHandle
- the session handleuserName
- the user namepassword
- the password
LensException
- the lens exceptionvoid closeSession(LensSessionHandle sessionHandle) throws LensException
sessionHandle
- the session handle
LensException
- the lens exceptionvoid addResource(LensSessionHandle sessionHandle, String type, String path)
sessionHandle
- the session handletype
- the typepath
- the path
LensException
- the lens exceptionvoid deleteResource(LensSessionHandle sessionHandle, String type, String path)
sessionHandle
- the session handletype
- the typepath
- the path
LensException
- the lens exceptionList<String> getAllSessionParameters(LensSessionHandle sessionHandle, boolean verbose, String key) throws LensException
sessionHandle
- the sessionidverbose
- the verbosekey
- the key
LensException
- the lens exceptionvoid setSessionParameter(LensSessionHandle sessionHandle, String key, String value)
sessionHandle
- the sessionidkey
- the keyvalue
- the valueint addResourceToAllServices(LensSessionHandle sessionHandle, String type, String path)
sessionHandle
- the sessionidtype
- the typepath
- the path
List<String> listAllResources(LensSessionHandle sessionHandle, String type)
sessionHandle
- the sessionidtype
- the resource type, can be null, file or jar
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |