|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hive.service.AbstractService org.apache.hive.service.CompositeService org.apache.lens.server.LensService
public abstract class LensService
The Class LensService.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.hive.service.CompositeService |
---|
org.apache.hive.service.CompositeService.CompositeServiceShutdownHook |
Nested classes/interfaces inherited from interface org.apache.hive.service.Service |
---|
org.apache.hive.service.Service.STATE |
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
The Constant LOG. |
Method Summary | |
---|---|
void |
acquire(LensSessionHandle sessionHandle)
Acquire. |
void |
acquire(String sessionHandle)
Acquire a lens session specified by the public UUID. |
void |
addResource(LensSessionHandle sessionHandle,
String type,
String path)
Adds the resource. |
void |
closeSession(LensSessionHandle sessionHandle)
Close session. |
void |
deleteResource(LensSessionHandle sessionHandle,
String type,
String path)
Delete resource. |
org.apache.hive.service.cli.CLIService |
getCliService()
|
static org.apache.hive.service.cli.SessionHandle |
getHiveSessionHandle(LensSessionHandle lensHandle)
Gets the hive session handle. |
org.apache.hadoop.conf.Configuration |
getLensConf(LensConf conf)
Gets the lens conf. |
org.apache.hadoop.conf.Configuration |
getLensConf(LensSessionHandle sessionHandle,
LensConf conf)
Gets the lens conf. |
String |
getServerDomain()
|
LensSessionImpl |
getSession(LensSessionHandle sessionHandle)
Gets the session. |
org.apache.hive.service.cli.session.SessionManager |
getSessionManager()
|
LensSessionHandle |
openSession(String username,
String password,
Map<String,String> configuration)
Open session. |
void |
prepareStopping()
Prepare stopping. |
void |
readExternal(ObjectInput in)
|
void |
release(LensSessionHandle sessionHandle)
Release. |
void |
release(String sessionHandle)
Releases a lens session specified by the public UUID. |
void |
restoreSession(LensSessionHandle sessionHandle,
String userName,
String password)
Restore session from previous instance of lens server. |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class org.apache.hive.service.CompositeService |
---|
getServices, init, start, stop |
Methods inherited from class org.apache.hive.service.AbstractService |
---|
getHiveConf, getName, getServiceState, getStartTime, register, unregister |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
Method Detail |
---|
public org.apache.hive.service.cli.CLIService getCliService()
public String getServerDomain()
public LensSessionHandle openSession(String username, String password, Map<String,String> configuration) throws LensException
username
- the usernamepassword
- the passwordconfiguration
- the configuration
LensException
- the lens exceptionpublic void restoreSession(LensSessionHandle sessionHandle, String userName, String password) throws LensException
sessionHandle
- the session handleuserName
- the user namepassword
- the password
LensException
- the lens exceptionpublic void closeSession(LensSessionHandle sessionHandle) throws LensException
sessionHandle
- the session handle
LensException
- the lens exceptionpublic org.apache.hive.service.cli.session.SessionManager getSessionManager()
public LensSessionImpl getSession(LensSessionHandle sessionHandle)
sessionHandle
- the session handle
public void acquire(LensSessionHandle sessionHandle)
sessionHandle
- the session handlepublic void acquire(String sessionHandle)
sessionHandle
- public UUID of the sessionpublic void release(LensSessionHandle sessionHandle)
sessionHandle
- the session handlepublic void release(String sessionHandle) throws LensException
sessionHandle
- the session handle
LensException
- if session cannot be releasedpublic void addResource(LensSessionHandle sessionHandle, String type, String path) throws LensException
sessionHandle
- the session handletype
- the typepath
- the path
LensException
- the lens exceptionpublic void deleteResource(LensSessionHandle sessionHandle, String type, String path) throws LensException
sessionHandle
- the session handletype
- the typepath
- the path
LensException
- the lens exceptionpublic static org.apache.hive.service.cli.SessionHandle getHiveSessionHandle(LensSessionHandle lensHandle)
lensHandle
- the lens handle
public org.apache.hadoop.conf.Configuration getLensConf(LensSessionHandle sessionHandle, LensConf conf) throws LensException
sessionHandle
- the session handleconf
- the conf
LensException
- the lens exceptionpublic org.apache.hadoop.conf.Configuration getLensConf(LensConf conf) throws LensException
conf
- the conf
LensException
- the lens exceptionpublic void prepareStopping()
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |