A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/structSNetServiceImpl.html below:

NCBI C++ ToolKit: SNetServiceImpl Struct Reference

Search Toolkit Book for SNetServiceImpl

#include "netservice_api_impl.hpp"
(Private to src/connect/services.)

string  MakeAuthString ()   CNetServer::SExecResult  FindServerAndExec (const string &cmd, bool multiline_output)   void  DiscoverServersIfNeeded ()   void  GetDiscoveredServers (CRef< SDiscoveredServers > &discovered_servers)   bool  IsInService (CNetServer::TInstance server)   void  IterateUntilExecOK (const string &cmd, bool multiline_output, CNetServer::SExecResult &exec_result, IServiceTraversal *service_traversal, EServerErrorHandling error_handling)   SNetServiceIteratorImplIterate (CNetServer::TInstance priority_server)   SDiscoveredServersAllocServerGroup (unsigned discovery_iteration)   CNetServer  GetServer (SSocketAddress server_address)   const stringGetClientName () const   unsigned  GetConnectionMaxRetries () const   unsigned long  GetConnectionRetryDelay () const   bool  IsLoadBalanced () const   shared_ptr< void >  CreateRetryGuard (SRetry::EType type)   virtual  ~SNetServiceImpl ()     CObject (void)   Constructor. More...
    CObject (const CObject &src)   Copy constructor. More...
  virtual  ~CObject (void)   Destructor. More...
  CObjectoperator= (const CObject &src) THROWS_NONE   Assignment operator. More...
  bool  CanBeDeleted (void) const THROWS_NONE   Check if object can be deleted. More...
  bool  IsAllocatedInPool (void) const THROWS_NONE   Check if object is allocated in memory pool (not system heap) More...
  bool  Referenced (void) const THROWS_NONE   Check if object is referenced. More...
  bool  ReferencedOnlyOnce (void) const THROWS_NONE   Check if object is referenced only once. More...
  void  AddReference (void) const   Add reference to object. More...
  void  RemoveReference (void) const   Remove reference to object. More...
  void  ReleaseReference (void) const   Remove reference without deleting object. More...
  virtual void  DoNotDeleteThisObject (void)   Mark this object as not allocated in heap – do not delete this object. More...
  virtual void  DoDeleteThisObject (void)   Mark this object as allocated in heap – object can be deleted. More...
  void *  operator new (size_t size)   Define new operator for memory allocation. More...
  void *  operator new[] (size_t size)   Define new[] operator for 'array' memory allocation. More...
  void  operator delete (void *ptr)   Define delete operator for memory deallocation. More...
  void  operator delete[] (void *ptr)   Define delete[] operator for memory deallocation. More...
  void *  operator new (size_t size, void *place)   Define new operator. More...
  void  operator delete (void *ptr, void *place)   Define delete operator. More...
  void *  operator new (size_t size, CObjectMemoryPool *place)   Define new operator using memory pool. More...
  void  operator delete (void *ptr, CObjectMemoryPool *place)   Define delete operator. More...
  virtual void  DebugDump (CDebugDumpContext ddc, unsigned int depth) const   Define method for dumping debug information. More...
    CDebugDumpable (void)   virtual  ~CDebugDumpable (void)   void  DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const   void  DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const   void  DumpToConsole (void) const   static SNetServiceImplCreate (const string &api_name, const string &service_name, const string &client_name, INetServerConnectionListener *listener, CSynRegistry &registry, SRegSynonyms &sections, const string &ns_client_name=kEmptyStr)   static SNetServiceImplClone (SNetServerInPool *server, SNetServiceImpl *prototype)   static SNetServiceImplClone (const string &service_name, SNetServiceImpl *prototype)   static void  InitXSite (CSynRegistry &registry, const SRegSynonyms &sections)   static void  ConnectXSite (CSocket &, SNetServerImpl::SConnectDeadline &, const SSocketAddress &, const string &)   static NCBI_XNCBI_EXPORT void  ThrowNullPointerException (void)   Define method to throw null pointer exception. More...
  static NCBI_XNCBI_EXPORT void  ThrowNullPointerException (const type_info &type)   static EAllocFillMode  GetAllocFillMode (void)   static void  SetAllocFillMode (EAllocFillMode mode)   static void  SetAllocFillMode (const string &value)   Set mode from configuration parameter value. More...
  static void  EnableDebugDump (bool on)  

Definition at line 276 of file netservice_api_impl.hpp.

◆ EServerErrorHandling Enumerator eRethrowServerErrors  eRethrowAllServerErrors  eIgnoreServerErrors 

Definition 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_ServerPool

Definition 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 private

The 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