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, unregister
public 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)
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 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
public abstract void run()
run
in interface java.lang.Runnable
Copyright © 2012 The Apache Software Foundation