public abstract class ThriftCLIService extends AbstractService implements TCLIService.Iface, Runnable
Service.STATE| Modifier and Type | Field and Description |
|---|---|
protected CLIService |
cliService |
protected ThreadLocal<org.apache.thrift.server.ServerContext> |
currentServerContext |
protected static HiveAuthFactory |
hiveAuthFactory |
protected HiveConf |
hiveConf |
protected String |
hiveHost |
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 org.apache.thrift.server.TServerEventHandler |
serverEventHandler |
protected InetAddress |
serverIPAddress |
protected long |
workerKeepAliveTime |
| Constructor and Description |
|---|
ThriftCLIService(CLIService service,
String serviceName) |
getHiveConf, getName, getServiceState, getStartTime, register, unregisterpublic static final org.apache.commons.logging.Log LOG
protected CLIService cliService
protected static HiveAuthFactory hiveAuthFactory
protected int portNum
protected InetAddress serverIPAddress
protected String hiveHost
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 long workerKeepAliveTime
protected org.apache.thrift.server.TServerEventHandler serverEventHandler
protected ThreadLocal<org.apache.thrift.server.ServerContext> currentServerContext
public ThriftCLIService(CLIService service, 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 int getPortNumber()
public InetAddress getServerIPAddress()
public TGetDelegationTokenResp GetDelegationToken(TGetDelegationTokenReq req) throws org.apache.thrift.TException
GetDelegationToken in interface TCLIService.Ifaceorg.apache.thrift.TExceptionpublic TCancelDelegationTokenResp CancelDelegationToken(TCancelDelegationTokenReq req) throws org.apache.thrift.TException
CancelDelegationToken in interface TCLIService.Ifaceorg.apache.thrift.TExceptionpublic TRenewDelegationTokenResp RenewDelegationToken(TRenewDelegationTokenReq req) throws org.apache.thrift.TException
RenewDelegationToken in interface TCLIService.Ifaceorg.apache.thrift.TExceptionpublic 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.TExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.