OmniSciDB
a5dc49c757
|
#include <ThriftClient.h>
Public Member Functions | |
ThriftClientConnection (const std::string &server_host, const int port, const ThriftConnectionType conn_type, bool skip_host_verify, const std::string &ca_cert_name, const std::string &trust_cert_file) | |
ThriftClientConnection (const std::string &server_host, const int port, const ThriftConnectionType conn_type, bool skip_host_verify, std::shared_ptr< TSSLSocketFactory > factory) | |
ThriftClientConnection () | |
std::shared_ptr< TTransport > | open_buffered_client_transport (const std::string &server_host, const int port, const std::string &ca_cert_name, const bool with_timeout=false, const bool with_keepalive=true, const unsigned connect_timeout=0, const unsigned recv_timeount=0, const unsigned send_timeout=0) |
std::shared_ptr< TTransport > | open_http_client_transport (const std::string &server_host, const int port, const std::string &trust_cert_file_, bool use_https, bool skip_verify) |
std::shared_ptr< TProtocol > | get_protocol () |
virtual | ~ThriftClientConnection () |
Private Attributes | |
std::string | server_host_ |
int | port_ |
ThriftConnectionType | conn_type_ |
bool | skip_host_verify_ |
std::string | ca_cert_name_ |
std::string | trust_cert_file_ |
bool | using_X509_store_ = false |
std::shared_ptr < TSSLSocketFactory > | factory_ |
Definition at line 31 of file ThriftClient.h.
|
inline |
Definition at line 33 of file ThriftClient.h.
ThriftClientConnection::ThriftClientConnection | ( | const std::string & | server_host, |
const int | port, | ||
const ThriftConnectionType | conn_type, | ||
bool | skip_host_verify, | ||
std::shared_ptr< TSSLSocketFactory > | factory | ||
) |
Definition at line 170 of file ThriftClient.cpp.
References BINARY_SSL, conn_type_, factory_, HTTPS, skip_host_verify_, and using_X509_store_.
|
inline |
Definition at line 52 of file ThriftClient.h.
|
virtual |
Definition at line 169 of file ThriftClient.cpp.
std::shared_ptr< TProtocol > ThriftClientConnection::get_protocol | ( | ) |
Definition at line 192 of file ThriftClient.cpp.
References ca_cert_name_, conn_type_, HTTP, HTTPS, open_buffered_client_transport(), open_http_client_transport(), port_, server_host_, skip_host_verify_, and to_string().
Referenced by RowToColumnLoader::createConnection().
std::shared_ptr< TTransport > ThriftClientConnection::open_buffered_client_transport | ( | const std::string & | server_host, |
const int | port, | ||
const std::string & | ca_cert_name, | ||
const bool | with_timeout = false , |
||
const bool | with_keepalive = true , |
||
const unsigned | connect_timeout = 0 , |
||
const unsigned | recv_timeount = 0 , |
||
const unsigned | send_timeout = 0 |
||
) |
Definition at line 220 of file ThriftClient.cpp.
References shared::default_tconfig(), factory_, and using_X509_store_.
Referenced by get_protocol().
std::shared_ptr< TTransport > ThriftClientConnection::open_http_client_transport | ( | const std::string & | server_host, |
const int | port, | ||
const std::string & | trust_cert_file_, | ||
bool | use_https, | ||
bool | skip_verify | ||
) |
Definition at line 283 of file ThriftClient.cpp.
References check_standard_ca(), factory_, trust_cert_file_, and using_X509_store_.
Referenced by get_protocol().
|
private |
Definition at line 79 of file ThriftClient.h.
Referenced by get_protocol().
|
private |
Definition at line 77 of file ThriftClient.h.
Referenced by get_protocol(), and ThriftClientConnection().
|
private |
Definition at line 82 of file ThriftClient.h.
Referenced by open_buffered_client_transport(), open_http_client_transport(), and ThriftClientConnection().
|
private |
Definition at line 76 of file ThriftClient.h.
Referenced by get_protocol().
|
private |
Definition at line 75 of file ThriftClient.h.
Referenced by get_protocol().
|
private |
Definition at line 78 of file ThriftClient.h.
Referenced by get_protocol(), and ThriftClientConnection().
|
private |
Definition at line 80 of file ThriftClient.h.
Referenced by open_http_client_transport().
|
private |
Definition at line 81 of file ThriftClient.h.
Referenced by open_buffered_client_transport(), open_http_client_transport(), and ThriftClientConnection().