Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ldap-client.cc
Go to the documentation of this file.
1 #include "gen-cpp/LdapTest.h"
2 #include "rpc/thrift-server.h"
3 #include "common/init.h"
4 #include <boost/shared_ptr.hpp>
5 #include "rpc/thrift-client.h"
6 #include "rpc/authentication.h"
7 
8 using namespace boost;
9 using namespace apache::thrift;
10 using namespace apache::thrift::protocol;
11 using namespace apache::thrift::transport;
12 using namespace apache::thrift::server;
13 using namespace apache::thrift::concurrency;
14 
15 using namespace impala;
16 
17 DECLARE_string(principal);
18 
19 int main(int argc, char** argv) {
20  InitCommonRuntime(argc, argv, false);
21  ThriftClient<LdapTestClient> client("localhost", 12345, NULL, ThriftServer::ThreadPool);
22  EXIT_IF_ERROR(client.Open());
23  LOG(INFO) << "Ping! " << client.iface()->Ping();
24 }
const StringSearch UrlParser::protocol_search & protocol
Definition: url-parser.cc:36
void InitCommonRuntime(int argc, char **argv, bool init_jvm, TestInfo::Mode m=TestInfo::NON_TEST)
Definition: init.cc:122
InterfaceType * iface()
Returns the object used to actually make RPCs against the remote server.
#define EXIT_IF_ERROR(stmt)
Definition: status.h:248
int main(int argc, char **argv)
Definition: ldap-client.cc:19
DECLARE_string(principal)