org.apache.hive.service.cli.thrift
Class ThriftCLIService
java.lang.Object
org.apache.hive.service.AbstractService
org.apache.hive.service.cli.thrift.ThriftCLIService
- All Implemented Interfaces:
- Runnable, TCLIService.Iface, Service
- Direct Known Subclasses:
- ThriftBinaryCLIService, ThriftHttpCLIService
public abstract class ThriftCLIService
- extends AbstractService
- implements TCLIService.Iface, Runnable
ThriftCLIService.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.commons.logging.Log LOG
cliService
protected CLIService cliService
portNum
protected int portNum
serverAddress
protected InetSocketAddress serverAddress
server
protected org.apache.thrift.server.TServer server
httpServer
protected org.mortbay.jetty.Server httpServer
isEmbedded
protected boolean isEmbedded
hiveConf
protected HiveConf hiveConf
minWorkerThreads
protected int minWorkerThreads
maxWorkerThreads
protected int maxWorkerThreads
hiveAuthFactory
protected static HiveAuthFactory hiveAuthFactory
ThriftCLIService
public ThriftCLIService(CLIService cliService,
String serviceName)
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 AbstractService
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 AbstractService
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 AbstractService
OpenSession
public TOpenSessionResp OpenSession(TOpenSessionReq req)
throws org.apache.thrift.TException
- Specified by:
OpenSession
in interface TCLIService.Iface
- Throws:
org.apache.thrift.TException
CloseSession
public TCloseSessionResp CloseSession(TCloseSessionReq req)
throws org.apache.thrift.TException
- Specified by:
CloseSession
in interface TCLIService.Iface
- Throws:
org.apache.thrift.TException
GetInfo
public TGetInfoResp GetInfo(TGetInfoReq req)
throws org.apache.thrift.TException
- Specified by:
GetInfo
in interface TCLIService.Iface
- Throws:
org.apache.thrift.TException
ExecuteStatement
public TExecuteStatementResp ExecuteStatement(TExecuteStatementReq req)
throws org.apache.thrift.TException
- Specified by:
ExecuteStatement
in interface TCLIService.Iface
- Throws:
org.apache.thrift.TException
GetTypeInfo
public TGetTypeInfoResp GetTypeInfo(TGetTypeInfoReq req)
throws org.apache.thrift.TException
- Specified by:
GetTypeInfo
in interface TCLIService.Iface
- Throws:
org.apache.thrift.TException
GetCatalogs
public TGetCatalogsResp GetCatalogs(TGetCatalogsReq req)
throws org.apache.thrift.TException
- Specified by:
GetCatalogs
in interface TCLIService.Iface
- Throws:
org.apache.thrift.TException
GetSchemas
public TGetSchemasResp GetSchemas(TGetSchemasReq req)
throws org.apache.thrift.TException
- Specified by:
GetSchemas
in interface TCLIService.Iface
- Throws:
org.apache.thrift.TException
GetTables
public TGetTablesResp GetTables(TGetTablesReq req)
throws org.apache.thrift.TException
- Specified by:
GetTables
in interface TCLIService.Iface
- Throws:
org.apache.thrift.TException
GetTableTypes
public TGetTableTypesResp GetTableTypes(TGetTableTypesReq req)
throws org.apache.thrift.TException
- Specified by:
GetTableTypes
in interface TCLIService.Iface
- Throws:
org.apache.thrift.TException
GetColumns
public TGetColumnsResp GetColumns(TGetColumnsReq req)
throws org.apache.thrift.TException
- Specified by:
GetColumns
in interface TCLIService.Iface
- Throws:
org.apache.thrift.TException
GetFunctions
public TGetFunctionsResp GetFunctions(TGetFunctionsReq req)
throws org.apache.thrift.TException
- Specified by:
GetFunctions
in interface TCLIService.Iface
- Throws:
org.apache.thrift.TException
GetOperationStatus
public TGetOperationStatusResp GetOperationStatus(TGetOperationStatusReq req)
throws org.apache.thrift.TException
- Specified by:
GetOperationStatus
in interface TCLIService.Iface
- Throws:
org.apache.thrift.TException
CancelOperation
public TCancelOperationResp CancelOperation(TCancelOperationReq req)
throws org.apache.thrift.TException
- Specified by:
CancelOperation
in interface TCLIService.Iface
- Throws:
org.apache.thrift.TException
CloseOperation
public TCloseOperationResp CloseOperation(TCloseOperationReq req)
throws org.apache.thrift.TException
- Specified by:
CloseOperation
in interface TCLIService.Iface
- Throws:
org.apache.thrift.TException
GetResultSetMetadata
public TGetResultSetMetadataResp GetResultSetMetadata(TGetResultSetMetadataReq req)
throws org.apache.thrift.TException
- Specified by:
GetResultSetMetadata
in interface TCLIService.Iface
- Throws:
org.apache.thrift.TException
FetchResults
public TFetchResultsResp FetchResults(TFetchResultsReq req)
throws org.apache.thrift.TException
- Specified by:
FetchResults
in interface TCLIService.Iface
- Throws:
org.apache.thrift.TException
run
public abstract void run()
- Specified by:
run
in interface Runnable
Copyright © 2012 The Apache Software Foundation