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, unregister
public 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)
AbstractService
Service.STATE.NOTINITED
to Service.STATE.INITED
unless the
operation failed and an exception was raised.init
in interface Service
init
in class AbstractService
public void start()
AbstractService
Service.STATE.INITED
to Service.STATE.STARTED
unless the
operation failed and an exception was raised.start
in interface Service
start
in class AbstractService
public void stop()
AbstractService
stop
in interface Service
stop
in class AbstractService
public int getPortNumber()
public InetAddress getServerIPAddress()
public TGetDelegationTokenResp GetDelegationToken(TGetDelegationTokenReq req) throws org.apache.thrift.TException
GetDelegationToken
in interface TCLIService.Iface
org.apache.thrift.TException
public TCancelDelegationTokenResp CancelDelegationToken(TCancelDelegationTokenReq req) throws org.apache.thrift.TException
CancelDelegationToken
in interface TCLIService.Iface
org.apache.thrift.TException
public TRenewDelegationTokenResp RenewDelegationToken(TRenewDelegationTokenReq req) throws org.apache.thrift.TException
RenewDelegationToken
in interface TCLIService.Iface
org.apache.thrift.TException
public TOpenSessionResp OpenSession(TOpenSessionReq req) throws org.apache.thrift.TException
OpenSession
in interface TCLIService.Iface
org.apache.thrift.TException
public TCloseSessionResp CloseSession(TCloseSessionReq req) throws org.apache.thrift.TException
CloseSession
in interface TCLIService.Iface
org.apache.thrift.TException
public TGetInfoResp GetInfo(TGetInfoReq req) throws org.apache.thrift.TException
GetInfo
in interface TCLIService.Iface
org.apache.thrift.TException
public TExecuteStatementResp ExecuteStatement(TExecuteStatementReq req) throws org.apache.thrift.TException
ExecuteStatement
in interface TCLIService.Iface
org.apache.thrift.TException
public TGetTypeInfoResp GetTypeInfo(TGetTypeInfoReq req) throws org.apache.thrift.TException
GetTypeInfo
in interface TCLIService.Iface
org.apache.thrift.TException
public TGetCatalogsResp GetCatalogs(TGetCatalogsReq req) throws org.apache.thrift.TException
GetCatalogs
in interface TCLIService.Iface
org.apache.thrift.TException
public TGetSchemasResp GetSchemas(TGetSchemasReq req) throws org.apache.thrift.TException
GetSchemas
in interface TCLIService.Iface
org.apache.thrift.TException
public TGetTablesResp GetTables(TGetTablesReq req) throws org.apache.thrift.TException
GetTables
in interface TCLIService.Iface
org.apache.thrift.TException
public TGetTableTypesResp GetTableTypes(TGetTableTypesReq req) throws org.apache.thrift.TException
GetTableTypes
in interface TCLIService.Iface
org.apache.thrift.TException
public TGetColumnsResp GetColumns(TGetColumnsReq req) throws org.apache.thrift.TException
GetColumns
in interface TCLIService.Iface
org.apache.thrift.TException
public TGetFunctionsResp GetFunctions(TGetFunctionsReq req) throws org.apache.thrift.TException
GetFunctions
in interface TCLIService.Iface
org.apache.thrift.TException
public TGetOperationStatusResp GetOperationStatus(TGetOperationStatusReq req) throws org.apache.thrift.TException
GetOperationStatus
in interface TCLIService.Iface
org.apache.thrift.TException
public TCancelOperationResp CancelOperation(TCancelOperationReq req) throws org.apache.thrift.TException
CancelOperation
in interface TCLIService.Iface
org.apache.thrift.TException
public TCloseOperationResp CloseOperation(TCloseOperationReq req) throws org.apache.thrift.TException
CloseOperation
in interface TCLIService.Iface
org.apache.thrift.TException
public TGetResultSetMetadataResp GetResultSetMetadata(TGetResultSetMetadataReq req) throws org.apache.thrift.TException
GetResultSetMetadata
in interface TCLIService.Iface
org.apache.thrift.TException
public TFetchResultsResp FetchResults(TFetchResultsReq req) throws org.apache.thrift.TException
FetchResults
in interface TCLIService.Iface
org.apache.thrift.TException
Copyright © 2017 The Apache Software Foundation. All rights reserved.