OmniSciDB  fe05a0c208
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 34 of file LeafHostInfo.h.

Constructor & Destructor Documentation

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

Definition at line 36 of file LeafHostInfo.h.

36 {}

Member Function Documentation

unsigned LeafHostInfo::getConnectTimeout ( unsigned  connect_timeout)

Definition at line 44 of file LeafHostInfo.h.

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

Definition at line 38 of file LeafHostInfo.h.

References host_.

38 { return host_; }
std::string host_
Definition: LeafHostInfo.h:54
uint16_t LeafHostInfo::getPort ( ) const

Definition at line 40 of file LeafHostInfo.h.

References port_.

40 { return port_; }
uint16_t port_
Definition: LeafHostInfo.h:58
unsigned LeafHostInfo::getRecvTimeout ( unsigned  recv_timeout)

Definition at line 45 of file LeafHostInfo.h.

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

Definition at line 42 of file LeafHostInfo.h.

References role_.

42 { return role_; }
NodeRole role_
Definition: LeafHostInfo.h:59
unsigned LeafHostInfo::getSendTimeout ( )

Definition at line 46 of file LeafHostInfo.h.

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

Definition at line 47 of file LeafHostInfo.h.

References host_.

47 { return host_; }
std::string host_
Definition: LeafHostInfo.h:54
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 

Definition at line 48 of file LeafHostInfo.h.

52  {
53  return std::vector<LeafHostInfo>{};
54  };

Member Data Documentation

std::string LeafHostInfo::host_

Definition at line 54 of file LeafHostInfo.h.

Referenced by getHost(), and getSSLCertFile().

uint16_t LeafHostInfo::port_

Definition at line 58 of file LeafHostInfo.h.

Referenced by getPort().

NodeRole LeafHostInfo::role_

Definition at line 59 of file LeafHostInfo.h.

Referenced by getRole().

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