SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::Thrift::Client Class Reference

#include <swcdb/thrift/client/Client.h>

+ Inheritance diagram for SWC::Thrift::Client:
+ Collaboration diagram for SWC::Thrift::Client:

Public Types

typedef std::shared_ptr< ClientPtr
 

Public Member Functions

 Client (const std::string &host, const uint16_t port, const uint32_t timeout_ms=900000, bool open=true)
 
virtual ~Client () noexcept
 
- Public Member Functions inherited from SWC::Thrift::CommClient
 CommClient (const std::string &host, const uint16_t port, const uint32_t timeout, bool open=true)
 
void open ()
 
void close ()
 
virtual ~CommClient () noexcept
 

Static Public Member Functions

static Ptr make (const std::string &host, const uint16_t port, const uint32_t timeout_ms=900000)
 

Additional Inherited Members

- Protected Attributes inherited from SWC::Thrift::CommClient
std::shared_ptr< thrift::transport::TTransport > socket
 
std::shared_ptr< thrift::transport::TTransport > transport
 
std::shared_ptr< thrift::protocol::TProtocol > protocol
 

Detailed Description

Definition at line 84 of file Client.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<Client> SWC::Thrift::Client::Ptr

Definition at line 86 of file Client.h.

Constructor & Destructor Documentation

◆ Client()

SWC::Thrift::Client::Client ( const std::string &  host,
const uint16_t  port,
const uint32_t  timeout_ms = 900000,
bool  open = true 
)
inline

Definition at line 93 of file Client.h.

Referenced by make().

+ Here is the caller graph for this function:

◆ ~Client()

virtual SWC::Thrift::Client::~Client ( )
inlinevirtualnoexcept

Definition at line 99 of file Client.h.

Member Function Documentation

◆ make()

static Ptr SWC::Thrift::Client::make ( const std::string &  host,
const uint16_t  port,
const uint32_t  timeout_ms = 900000 
)
inlinestatic

Definition at line 88 of file Client.h.

References Client(), and timeout_ms.

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: