NCBI C++ ToolKit
Classes | Macros | Typedefs | Functions
netservice_api_impl.hpp File Reference
#include "srv_connections_impl.hpp"
#include "balancing.hpp"
#include <corelib/request_ctx.hpp>
#include <connect/ncbi_connutil.h>
#include <map>
#include <atomic>
#include <memory>
+ Include dependency graph for netservice_api_impl.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  SDiscoveredServers
 
struct  SNetServerPoolImpl
 
struct  SNetServiceIteratorImpl
 
struct  SNetServiceIterator_OmitPenalized
 
struct  SNetServiceIterator_RandomPivot
 
struct  SNetServiceIterator_Circular
 
struct  SNetServiceIterator_Weighted
 
struct  SNetServiceIterator_Weighted::SServerRank
 
class  IServiceTraversal
 
struct  SNetServiceXSiteAPI
 
struct  SNetServiceImpl
 
struct  SNetServiceImpl::SRetry
 
struct  SNetServiceMap
 

Macros

#define CONNSERV_THROW_FMT(exception_class, err_code, server, message)
 

Typedefs

typedef pair< SNetServerInPool *, double > TServerRate
 
typedef vector< TServerRateTNetServerList
 
typedef map< SSocketAddress, SNetServerInPool * > TNetServerByAddress
 
typedef map< string, CNetServiceTNetServiceByName
 

Functions

void g_AppendHitID (string &cmd, CRequestContext &req)
 
void g_AppendClientIPAndSessionID (string &cmd, const CRequestContext &req)
 

Macro Definition Documentation

◆ CONNSERV_THROW_FMT

#define CONNSERV_THROW_FMT (   exception_class,
  err_code,
  server,
  message 
)
Value:
NCBI_THROW(exception_class, err_code, \
FORMAT(server->m_ServerInPool->m_Address.AsString() << \
": " << message))
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
Definition: ncbiexpt.hpp:704
#define FORMAT(message)
Format message using iostreams library.
Definition: ncbiexpt.hpp:672

Definition at line 45 of file netservice_api_impl.hpp.

Typedef Documentation

◆ TNetServerByAddress

Definition at line 52 of file netservice_api_impl.hpp.

◆ TNetServerList

typedef vector<TServerRate> TNetServerList

Definition at line 51 of file netservice_api_impl.hpp.

◆ TNetServiceByName

Definition at line 53 of file netservice_api_impl.hpp.

◆ TServerRate

typedef pair<SNetServerInPool*, double> TServerRate

Definition at line 50 of file netservice_api_impl.hpp.

Function Documentation

◆ g_AppendClientIPAndSessionID()

void g_AppendClientIPAndSessionID ( string cmd,
const CRequestContext req 
)
inline

◆ g_AppendHitID()

void g_AppendHitID ( string cmd,
CRequestContext req 
)
inline
Modified on Wed Jun 19 17:05:26 2024 by modify_doxy.py rev. 669887