15 #ifndef IMPALA_TESTUTIL_IN_PROCESS_SERVERS_H
16 #define IMPALA_TESTUTIL_IN_PROCESS_SERVERS_H
18 #include <boost/scoped_ptr.hpp>
19 #include <boost/shared_ptr.hpp>
44 int subscriber_port,
int webserver_port,
45 const std::string& statestore_host,
int statestore_port);
An in-process statestore, with webserver and metrics.
MetricGroups may be organised hierarchically as a tree.
InProcessImpalaServer(const std::string &hostname, int backend_port, int subscriber_port, int webserver_port, const std::string &statestore_host, int statestore_port)
boost::scoped_ptr< ExecEnv > exec_env_
ExecEnv holds much of the per-service state.
InProcessStatestore(int statestore_port, int webserver_port)
Constructs but does not start the statestore.
boost::scoped_ptr< Thread > statestore_main_loop_
boost::scoped_ptr< Statestore > statestore_
The statestore instance.
const std::string hostname_
Hostname for this server, usually FLAGS_hostname.
boost::scoped_ptr< MetricGroup > metrics_
MetricGroup object.
void SetCatalogInitialized()
boost::scoped_ptr< Webserver > webserver_
Websever object to serve debug pages through.
ImpalaServer * impala_server_
boost::scoped_ptr< ThriftServer > hs2_server_
Frontend HiveServer2 server.
uint32_t statestore_port_
Port to start the statestore on.
const uint32_t backend_port_
Port to start the backend server on.
Status Start()
Starts the statestore server, and the processing thread.
boost::scoped_ptr< ThriftServer > statestore_server_
Statestore Thrift server.
Status StartWithClientServers(int beeswax_port, int hs2_port, bool use_statestore)
ImpalaServer * impala_server()
boost::scoped_ptr< ThriftServer > be_server_
Backend Thrift server.
boost::scoped_ptr< ThriftServer > beeswax_server_
Frontend Beeswax server.
Status StartAsBackendOnly(bool use_statestore)