public class SessionManager extends CompositeService
CompositeService.CompositeServiceShutdownHookService.STATE| Constructor and Description |
|---|
SessionManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeSession(SessionHandle sessionHandle) |
OperationManager |
getOperationManager() |
HiveSession |
getSession(SessionHandle sessionHandle) |
void |
init(HiveConf hiveConf)
Initialize the service.
|
SessionHandle |
openSession(java.lang.String username,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String> sessionConf) |
SessionHandle |
openSession(java.lang.String username,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String> sessionConf,
boolean withImpersonation,
java.lang.String delegationToken) |
static void |
setIpAddress(java.lang.String ipAddress) |
static void |
setUserName(java.lang.String userName) |
void |
start()
Start the service.
|
void |
stop()
Stop the service.
|
java.util.concurrent.Future<?> |
submitBackgroundOperation(java.lang.Runnable r) |
addService, getServices, removeServicegetHiveConf, getName, getServiceState, getStartTime, register, unregisterpublic void init(HiveConf hiveConf)
AbstractServiceService.STATE.NOTINITED to Service.STATE.INITED unless the
operation failed and an exception was raised.init in interface Serviceinit in class CompositeServicepublic void start()
AbstractServiceService.STATE.INITED to Service.STATE.STARTED unless the
operation failed and an exception was raised.start in interface Servicestart in class CompositeServicepublic void stop()
AbstractServicestop in interface Servicestop in class CompositeServicepublic SessionHandle openSession(java.lang.String username, java.lang.String password, java.util.Map<java.lang.String,java.lang.String> sessionConf) throws HiveSQLException
HiveSQLExceptionpublic SessionHandle openSession(java.lang.String username, java.lang.String password, java.util.Map<java.lang.String,java.lang.String> sessionConf, boolean withImpersonation, java.lang.String delegationToken) throws HiveSQLException
HiveSQLExceptionpublic void closeSession(SessionHandle sessionHandle) throws HiveSQLException
HiveSQLExceptionpublic HiveSession getSession(SessionHandle sessionHandle) throws HiveSQLException
HiveSQLExceptionpublic OperationManager getOperationManager()
public static void setIpAddress(java.lang.String ipAddress)
public static void setUserName(java.lang.String userName)
public java.util.concurrent.Future<?> submitBackgroundOperation(java.lang.Runnable r)
Copyright © 2012 The Apache Software Foundation