org.apache.hive.service.cli.session
Class SessionManager

java.lang.Object
  extended by org.apache.hive.service.AbstractService
      extended by org.apache.hive.service.CompositeService
          extended by org.apache.hive.service.cli.session.SessionManager
All Implemented Interfaces:
Service

public class SessionManager
extends CompositeService

SessionManager.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hive.service.CompositeService
CompositeService.CompositeServiceShutdownHook
 
Nested classes/interfaces inherited from interface org.apache.hive.service.Service
Service.STATE
 
Constructor Summary
SessionManager()
           
 
Method Summary
 void closeSession(SessionHandle sessionHandle)
           
 OperationManager getOperationManager()
           
 HiveSession getSession(SessionHandle sessionHandle)
           
 void init(HiveConf hiveConf)
          Initialize the service.
 SessionHandle openSession(String username, String password, Map<String,String> sessionConf)
           
 SessionHandle openSession(String username, String password, Map<String,String> sessionConf, boolean withImpersonation, String delegationToken)
           
static void setIpAddress(String ipAddress)
           
static void setUserName(String userName)
           
 void start()
          Start the service.
 void stop()
          Stop the service.
 
Methods inherited from class org.apache.hive.service.CompositeService
addService, getServices, removeService
 
Methods inherited from class org.apache.hive.service.AbstractService
getHiveConf, getName, getServiceState, getStartTime, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionManager

public SessionManager()
Method Detail

init

public void init(HiveConf hiveConf)
Description copied from class: AbstractService
Initialize the service. The transition must be from Service.STATE.NOTINITED to Service.STATE.INITED unless the operation failed and an exception was raised.

Specified by:
init in interface Service
Overrides:
init in class CompositeService

start

public void start()
Description copied from class: AbstractService
Start the service. The transition should be from Service.STATE.INITED to Service.STATE.STARTED unless the operation failed and an exception was raised.

Specified by:
start in interface Service
Overrides:
start in class CompositeService

stop

public void stop()
Description copied from class: AbstractService
Stop the service. This operation must be designed to complete regardless of the initial state of the service, including the state of all its internal fields.

Specified by:
stop in interface Service
Overrides:
stop in class CompositeService

openSession

public SessionHandle openSession(String username,
                                 String password,
                                 Map<String,String> sessionConf)
                          throws HiveSQLException
Throws:
HiveSQLException

openSession

public SessionHandle openSession(String username,
                                 String password,
                                 Map<String,String> sessionConf,
                                 boolean withImpersonation,
                                 String delegationToken)
                          throws HiveSQLException
Throws:
HiveSQLException

closeSession

public void closeSession(SessionHandle sessionHandle)
                  throws HiveSQLException
Throws:
HiveSQLException

getSession

public HiveSession getSession(SessionHandle sessionHandle)
                       throws HiveSQLException
Throws:
HiveSQLException

getOperationManager

public OperationManager getOperationManager()

setIpAddress

public static void setIpAddress(String ipAddress)

setUserName

public static void setUserName(String userName)


Copyright © 2012 The Apache Software Foundation