NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
CServiceDiscovery Class Reference

Search Toolkit Book for CServiceDiscovery

#include <connect/impl/connect_misc.hpp>

Public Types

using TServer = pair< SSocketAddress, double >
using TServers = vector< TServer >

Public Member Functions

 CServiceDiscovery (const string &service_name, SSocketAddress::SHost::EName name=SSocketAddress::SHost::EName::eOriginal)
TServers operator() ()
const stringGetServiceName () const
bool IsSingleServer () const

Static Public Member Functions

static TServers DiscoverImpl (const string &, unsigned, shared_ptr< void > &, pair< string, const char * >, int, unsigned long)

Private Attributes

const string m_ServiceName
shared_ptr< void > m_Data
const bool m_IsSingleServer

Detailed Description

Definition at line 93 of file connect_misc.hpp.

Member Typedef Documentation

◆ TServer

Definition at line 98 of file connect_misc.hpp.

◆ TServers

Definition at line 99 of file connect_misc.hpp.

Constructor & Destructor Documentation

◆ CServiceDiscovery()

CServiceDiscovery::CServiceDiscovery ( const string service_name,
SSocketAddress::SHost::EName  name = SSocketAddress::SHost::EName::eOriginal 

Definition at line 138 of file connect_misc.cpp.

Member Function Documentation

◆ DiscoverImpl()

CServiceDiscovery::TServers CServiceDiscovery::DiscoverImpl ( const string service_name,
unsigned  types,
shared_ptr< void > &  net_info,
pair< string, const char * >  lbsm_affinity,
int  try_count,
unsigned long  retry_delay 

◆ GetServiceName()

const string& CServiceDiscovery::GetServiceName ( ) const

Definition at line 102 of file connect_misc.hpp.

References m_ServiceName.

◆ IsSingleServer()

bool CServiceDiscovery::IsSingleServer ( ) const

Definition at line 103 of file connect_misc.hpp.

References m_IsSingleServer.

Referenced by s_GetDiscoveryRepeat().

◆ operator()()

CServiceDiscovery::TServers CServiceDiscovery::operator() ( void  )

Member Data Documentation

◆ m_Data

shared_ptr<void> CServiceDiscovery::m_Data

Definition at line 109 of file connect_misc.hpp.

Referenced by operator()().

◆ m_IsSingleServer

const bool CServiceDiscovery::m_IsSingleServer

Definition at line 110 of file connect_misc.hpp.

Referenced by IsSingleServer(), and operator()().

◆ m_ServiceName

const string CServiceDiscovery::m_ServiceName

Definition at line 108 of file connect_misc.hpp.

Referenced by GetServiceName(), and operator()().

The documentation for this class was generated from the following files:
Modified on Wed Apr 17 13:08:49 2024 by rev. 669887