OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LeafHostInfo Class Reference

#include <LeafHostInfo.h>

+ Collaboration diagram for LeafHostInfo:

Public Member Functions

 LeafHostInfo (const std::string &host, const uint16_t port, const NodeRole role)
 
const std::string & getHost () const
 
uint16_t getPort () const
 
NodeRole getRole () const
 
unsigned getConnectTimeout (unsigned connect_timeout)
 
unsigned getRecvTimeout (unsigned recv_timeout)
 
unsigned getSendTimeout ()
 
std::string & getSSLCertFile ()
 

Static Public Member Functions

static std::vector< LeafHostInfoparseClusterConfig (const std::string &file_path, const unsigned connect_timeout, const unsigned recv_timeout, const unsigned send_timeout, const std::string &ca_cert)
 

Private Attributes

std::string host_
 
uint16_t port_
 
NodeRole role_
 

Detailed Description

Definition at line 32 of file LeafHostInfo.h.

Constructor & Destructor Documentation

LeafHostInfo::LeafHostInfo ( const std::string &  host,
const uint16_t  port,
const NodeRole  role 
)
inline

Definition at line 34 of file LeafHostInfo.h.

34 {}

Member Function Documentation

unsigned LeafHostInfo::getConnectTimeout ( unsigned  connect_timeout)
inline

Definition at line 42 of file LeafHostInfo.h.

42 { return 0; }
const std::string& LeafHostInfo::getHost ( ) const
inline

Definition at line 36 of file LeafHostInfo.h.

References host_.

36 { return host_; }
std::string host_
Definition: LeafHostInfo.h:52
uint16_t LeafHostInfo::getPort ( ) const
inline

Definition at line 38 of file LeafHostInfo.h.

References port_.

38 { return port_; }
uint16_t port_
Definition: LeafHostInfo.h:56
unsigned LeafHostInfo::getRecvTimeout ( unsigned  recv_timeout)
inline

Definition at line 43 of file LeafHostInfo.h.

43 { return 0; }
NodeRole LeafHostInfo::getRole ( ) const
inline

Definition at line 40 of file LeafHostInfo.h.

References role_.

40 { return role_; }
NodeRole role_
Definition: LeafHostInfo.h:57
unsigned LeafHostInfo::getSendTimeout ( )
inline

Definition at line 44 of file LeafHostInfo.h.

44 { return 0; }
std::string& LeafHostInfo::getSSLCertFile ( )
inline

Definition at line 45 of file LeafHostInfo.h.

References host_.

45 { return host_; }
std::string host_
Definition: LeafHostInfo.h:52
static std::vector<LeafHostInfo> LeafHostInfo::parseClusterConfig ( const std::string &  file_path,
const unsigned  connect_timeout,
const unsigned  recv_timeout,
const unsigned  send_timeout,
const std::string &  ca_cert 
)
inlinestatic

Definition at line 46 of file LeafHostInfo.h.

50  {
51  return std::vector<LeafHostInfo>{};
52  };

Member Data Documentation

std::string LeafHostInfo::host_
private

Definition at line 52 of file LeafHostInfo.h.

Referenced by getHost(), and getSSLCertFile().

uint16_t LeafHostInfo::port_
private

Definition at line 56 of file LeafHostInfo.h.

Referenced by getPort().

NodeRole LeafHostInfo::role_
private

Definition at line 57 of file LeafHostInfo.h.

Referenced by getRole().


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