Search Toolkit Book for SNetServiceImpl
#include "netservice_api_impl.hpp"
(Private to src/connect/services
.)
Definition at line 276 of file netservice_api_impl.hpp.
◆ EServerErrorHandling Enumerator eRethrowServerErrors eRethrowAllServerErrors eIgnoreServerErrorsDefinition at line 327 of file netservice_api_impl.hpp.
◆ EServiceType ◆ SNetServiceImpl() [1/3] ◆ SNetServiceImpl() [2/3] ◆ SNetServiceImpl() [3/3] ◆ ~SNetServiceImpl() SNetServiceImpl::~SNetServiceImpl ( ) virtual ◆ AllocServerGroup() ◆ Clone() [1/2] ◆ Clone() [2/2] ◆ Construct() [1/2] void SNetServiceImpl::Construct ( void ) private ◆ Construct() [2/2] ◆ Create() ◆ CreateRetryGuard() shared_ptr< void > SNetServiceImpl::CreateRetryGuard ( SRetry::EType type ) ◆ DiscoverServersIfNeeded() void SNetServiceImpl::DiscoverServersIfNeeded ( )Definition at line 919 of file netservice_api.cpp.
References AllocServerGroup(), SThrottleStats::Discover(), CServiceDiscovery::DiscoverImpl(), eLoadBalancedService, eServiceNotDefined, SNetServerPoolImpl::FindOrCreateServerImpl(), fSERV_IncludeReserved, fSERV_IncludeStandby, fSERV_IncludeSuppressed, fSERV_Standalone, LBSMD_PENALIZED_RATE_BOUNDARY, m_APIName, m_ConnectionRetryDelay, m_DiscoveredServers, SDiscoveredServers::m_DiscoveryIteration, m_LatestDiscoveryIteration, SNetServerPoolImpl::m_LBSMAffinity, m_NetInfo, m_RebalanceStrategy, SNetServerPoolImpl::m_ServerMutex, m_ServerPool, SDiscoveredServers::m_Servers, SDiscoveredServers::m_Service, m_ServiceName, m_ServiceType, SDiscoveredServers::m_SuppressedBegin, SNetServerInPool::m_ThrottleStats, NCBI_THROW_FMT, CSimpleRebalanceStrategy::NeedRebalance(), NULL, CSimpleRebalanceStrategy::OnResourceRequested(), CGuard< Resource, Lock, Unlock, ReportExceptions >::Release(), SDiscoveredServers::Reset(), and types.
Referenced by GetDiscoveredServers().
◆ FindServerAndExec()Definition at line 875 of file netservice_api.cpp.
References cmd, eIgnoreServerErrors, eLoadBalancedService, eSingleServerService, CNetServer::ExecWithRetry(), IterateUntilExecOK(), m_APIName, m_DiscoveredServers, m_ServerPool, SDiscoveredServers::m_Servers, m_ServiceType, NCBI_THROW_FMT, and SNetServerPoolImpl::ReturnServer().
Referenced by SNetCacheAPIImpl::ExecMirrorAware().
◆ GetClientName() const string& SNetServiceImpl::GetClientName ( void ) const inline ◆ GetConnectionMaxRetries() unsigned SNetServiceImpl::GetConnectionMaxRetries ( ) const inline ◆ GetConnectionRetryDelay() unsigned long SNetServiceImpl::GetConnectionRetryDelay ( ) const inline ◆ GetDiscoveredServers() ◆ GetServer() ◆ Init()Definition at line 597 of file netservice_api.cpp.
References CONNECTION_MAX_RETRIES, Construct(), NStr::FindNoCase(), IRegistry::Get(), CNcbiApplicationAPI::GetProgramDisplayName(), SNetServerPoolImpl::Init(), SNetServiceXSiteAPI::InitXSite(), CNcbiApplicationAPI::InstanceGuard(), kMilliSecondsPerSecond, m_APIName, m_ClientName, m_ConnectionMaxRetries, m_ConnectionRetryDelay, m_ServerPool, m_ServiceName, m_UseSmartRetries, NCBI_THROW_FMT, NPOS, registry, RETRY_DELAY_DEFAULT, and NStr::TruncateSpacesInPlace().
◆ IsInService() ◆ IsLoadBalanced() bool SNetServiceImpl::IsLoadBalanced ( ) const inline ◆ Iterate() ◆ IterateUntilExecOK()Definition at line 1038 of file netservice_api.cpp.
References IServiceTraversal::BeginIteration(), cmd, SNetServerImpl::ConnectAndExec(), CNetCacheException::eBlobNotFound, CNetSrvConnException::eConnectionFailure, CNetSrvConnException::eReadTimeout, eRethrowAllServerErrors, eRethrowServerErrors, ERR_POST, CNetSrvConnException::eServerThrottle, CNetScheduleException::eSubmitsDisabled, CTimeout::GetAsMilliSeconds(), CException::GetErrCode(), CException::GetMsg(), CDeadline::GetRemainingTime(), CDeadline::IsInfinite(), SFailOnlyWarnings::IssueAndClear(), m_ConnectionMaxRetries, m_ConnectionRetryDelay, SNetServerPoolImpl::m_FirstServerTimeout, m_Listener, SNetServerPoolImpl::m_MaxTotalTime, m_ServerPool, m_ServiceName, m_UseSmartRetries, NCBI_THROW_FMT, IServiceTraversal::NextServer(), NULL, INetServerConnectionListener::OnWarning(), SleepMilliSec(), and Warning().
Referenced by SNetICacheClientImpl::ChooseServerAndExec(), SNetCacheAPIImpl::ExecMirrorAware(), and FindServerAndExec().
◆ MakeAuthString() string SNetServiceImpl::MakeAuthString ( ) ◆ m_APIName string SNetServiceImpl::m_APIName private ◆ m_ClientName string SNetServiceImpl::m_ClientName private ◆ m_ConnectionMaxRetries unsigned SNetServiceImpl::m_ConnectionMaxRetries private ◆ m_ConnectionRetryDelay unsigned long SNetServiceImpl::m_ConnectionRetryDelay private ◆ m_DiscoveredServers ◆ m_DiscoveryMutex ◆ m_LatestDiscoveryIteration unsigned SNetServiceImpl::m_LatestDiscoveryIteration = 0 ◆ m_Listener ◆ m_NetInfo shared_ptr<void> SNetServiceImpl::m_NetInfo private ◆ m_RebalanceStrategy ◆ m_RoundRobin ◆ m_ServerGroupPool ◆ m_ServerPoolDefinition at line 357 of file netservice_api_impl.hpp.
Referenced by Construct(), DiscoverServersIfNeeded(), FindServerAndExec(), GetServer(), SNetScheduleAPIImpl::GetServerByNode(), Init(), IterateUntilExecOK(), MakeAuthString(), CNetCacheWriter::TransmitImpl(), SNetScheduleAPIImpl::UpdateAuthString(), and SNetScheduleAPIImpl::UseOldStyleAuth().
◆ m_ServiceName string SNetServiceImpl::m_ServiceName ◆ m_ServiceType ◆ m_UseSmartRetries bool SNetServiceImpl::m_UseSmartRetries privateThe documentation for this struct was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4