public interface SessionService
| Modifier and Type | Field and Description | 
|---|---|
| static String | NAMEName of session service | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
| boolean | isOpen(LensSessionHandle sessionHandle)Returns true if the session is open | 
| 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. | 
static final String NAME
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 configurationLensException - the lens exceptionvoid restoreSession(LensSessionHandle sessionHandle, String userName, String password) throws LensException
sessionHandle - the session handleuserName - the user namepassword - the passwordLensException - the lens exceptionvoid closeSession(LensSessionHandle sessionHandle) throws LensException
sessionHandle - the session handleLensException - the lens exceptionvoid addResource(LensSessionHandle sessionHandle, String type, String path)
sessionHandle - the session handletype - the typepath - the pathvoid deleteResource(LensSessionHandle sessionHandle, String type, String path)
sessionHandle - the session handletype - the typepath - the pathList<String> getAllSessionParameters(LensSessionHandle sessionHandle, boolean verbose, String key) throws LensException
sessionHandle - the sessionidverbose - the verbosekey - the keyLensException - 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 pathList<String> listAllResources(LensSessionHandle sessionHandle, String type)
sessionHandle - the sessionidtype - the resource type, can be null, file or jarboolean isOpen(LensSessionHandle sessionHandle)
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.