OmniSciDB  c07336695a
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::LeafHostInfo ( const std::string &  host,
const uint16_t  port,
const NodeRole  role 
)
inline

Definition at line 36 of file LeafHostInfo.h.

36 {}

Member Function Documentation

◆ getConnectTimeout()

unsigned LeafHostInfo::getConnectTimeout ( unsigned  connect_timeout)
inline

Definition at line 44 of file LeafHostInfo.h.

44 { return 0; }

◆ getHost()

const std::string& LeafHostInfo::getHost ( ) const
inline

Definition at line 38 of file LeafHostInfo.h.

38 { return host_; }
std::string host_
Definition: LeafHostInfo.h:54

◆ getPort()

uint16_t LeafHostInfo::getPort ( ) const
inline

Definition at line 40 of file LeafHostInfo.h.

40 { return port_; }
uint16_t port_
Definition: LeafHostInfo.h:58

◆ getRecvTimeout()

unsigned LeafHostInfo::getRecvTimeout ( unsigned  recv_timeout)
inline

Definition at line 45 of file LeafHostInfo.h.

45 { return 0; }

◆ getRole()

NodeRole LeafHostInfo::getRole ( ) const
inline

Definition at line 42 of file LeafHostInfo.h.

42 { return role_; }
NodeRole role_
Definition: LeafHostInfo.h:59

◆ getSendTimeout()

unsigned LeafHostInfo::getSendTimeout ( )
inline

Definition at line 46 of file LeafHostInfo.h.

46 { return 0; }

◆ getSSLCertFile()

std::string& LeafHostInfo::getSSLCertFile ( )
inline

Definition at line 47 of file LeafHostInfo.h.

47 { return host_; }
std::string host_
Definition: LeafHostInfo.h:54

◆ parseClusterConfig()

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 48 of file LeafHostInfo.h.

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

Member Data Documentation

◆ host_

std::string LeafHostInfo::host_
private

Definition at line 54 of file LeafHostInfo.h.

◆ port_

uint16_t LeafHostInfo::port_
private

Definition at line 58 of file LeafHostInfo.h.

◆ role_

NodeRole LeafHostInfo::role_
private

Definition at line 59 of file LeafHostInfo.h.


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