public abstract class ThriftCLIService extends AbstractService implements TCLIService.Iface, java.lang.Runnable
Service.STATE| Modifier and Type | Field and Description |
|---|---|
protected CLIService |
cliService |
protected static HiveAuthFactory |
hiveAuthFactory |
protected HiveConf |
hiveConf |
protected org.eclipse.jetty.server.Server |
httpServer |
protected boolean |
isEmbedded |
static org.apache.commons.logging.Log |
LOG |
protected int |
maxWorkerThreads |
protected int |
minWorkerThreads |
protected int |
portNum |
protected org.apache.thrift.server.TServer |
server |
protected java.net.InetSocketAddress |
serverAddress |
| Constructor and Description |
|---|
ThriftCLIService(CLIService cliService,
java.lang.String serviceName) |
getHiveConf, getName, getServiceState, getStartTime, register, unregisterpublic static final org.apache.commons.logging.Log LOG
protected CLIService cliService
protected int portNum
protected java.net.InetSocketAddress serverAddress
protected org.apache.thrift.server.TServer server
protected org.eclipse.jetty.server.Server httpServer
protected boolean isEmbedded
protected HiveConf hiveConf
protected int minWorkerThreads
protected int maxWorkerThreads
protected static HiveAuthFactory hiveAuthFactory
public ThriftCLIService(CLIService cliService, java.lang.String serviceName)
public 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 AbstractServicepublic void start()
AbstractServiceService.STATE.INITED to Service.STATE.STARTED unless the
operation failed and an exception was raised.start in interface Servicestart in class AbstractServicepublic void stop()
AbstractServicestop in interface Servicestop in class AbstractServicepublic TOpenSessionResp OpenSession(TOpenSessionReq req) throws org.apache.thrift.TException
OpenSession in interface TCLIService.Ifaceorg.apache.thrift.TExceptionpublic TCloseSessionResp CloseSession(TCloseSessionReq req) throws org.apache.thrift.TException
CloseSession in interface TCLIService.Ifaceorg.apache.thrift.TExceptionpublic TGetInfoResp GetInfo(TGetInfoReq req) throws org.apache.thrift.TException
GetInfo in interface TCLIService.Ifaceorg.apache.thrift.TExceptionpublic TExecuteStatementResp ExecuteStatement(TExecuteStatementReq req) throws org.apache.thrift.TException
ExecuteStatement in interface TCLIService.Ifaceorg.apache.thrift.TExceptionpublic TGetTypeInfoResp GetTypeInfo(TGetTypeInfoReq req) throws org.apache.thrift.TException
GetTypeInfo in interface TCLIService.Ifaceorg.apache.thrift.TExceptionpublic TGetCatalogsResp GetCatalogs(TGetCatalogsReq req) throws org.apache.thrift.TException
GetCatalogs in interface TCLIService.Ifaceorg.apache.thrift.TExceptionpublic TGetSchemasResp GetSchemas(TGetSchemasReq req) throws org.apache.thrift.TException
GetSchemas in interface TCLIService.Ifaceorg.apache.thrift.TExceptionpublic TGetTablesResp GetTables(TGetTablesReq req) throws org.apache.thrift.TException
GetTables in interface TCLIService.Ifaceorg.apache.thrift.TExceptionpublic TGetTableTypesResp GetTableTypes(TGetTableTypesReq req) throws org.apache.thrift.TException
GetTableTypes in interface TCLIService.Ifaceorg.apache.thrift.TExceptionpublic TGetColumnsResp GetColumns(TGetColumnsReq req) throws org.apache.thrift.TException
GetColumns in interface TCLIService.Ifaceorg.apache.thrift.TExceptionpublic TGetFunctionsResp GetFunctions(TGetFunctionsReq req) throws org.apache.thrift.TException
GetFunctions in interface TCLIService.Ifaceorg.apache.thrift.TExceptionpublic TGetOperationStatusResp GetOperationStatus(TGetOperationStatusReq req) throws org.apache.thrift.TException
GetOperationStatus in interface TCLIService.Ifaceorg.apache.thrift.TExceptionpublic TCancelOperationResp CancelOperation(TCancelOperationReq req) throws org.apache.thrift.TException
CancelOperation in interface TCLIService.Ifaceorg.apache.thrift.TExceptionpublic TCloseOperationResp CloseOperation(TCloseOperationReq req) throws org.apache.thrift.TException
CloseOperation in interface TCLIService.Ifaceorg.apache.thrift.TExceptionpublic TGetResultSetMetadataResp GetResultSetMetadata(TGetResultSetMetadataReq req) throws org.apache.thrift.TException
GetResultSetMetadata in interface TCLIService.Ifaceorg.apache.thrift.TExceptionpublic TFetchResultsResp FetchResults(TFetchResultsReq req) throws org.apache.thrift.TException
FetchResults in interface TCLIService.Ifaceorg.apache.thrift.TExceptionpublic abstract void run()
run in interface java.lang.RunnableCopyright © 2012 The Apache Software Foundation