NCBI C++ ToolKit
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SThrottleStats Struct Reference

Search Toolkit Book for SThrottleStats

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

+ Collaboration diagram for SThrottleStats:

Public Member Functions

 SThrottleStats (SThrottleParams params)
 
void Adjust (SNetServerImpl *server_impl, int err_code)
 
void Check (SNetServerImpl *server_impl)
 
void Discover ()
 

Private Member Functions

void Reset ()
 

Private Attributes

const SThrottleParams m_Params
 
int m_NumberOfConsecutiveIOFailures
 
pair< bitset< SThrottleParams::SIOFailureThreshold::kMaxDenominator >, size_t > m_IOFailureRegister
 
bool m_Throttled
 
bool m_DiscoveredAfterThrottling
 
string m_ThrottleMessage
 
CTime m_ThrottledUntil
 
CFastMutex m_ThrottleLock
 

Detailed Description

Definition at line 178 of file srv_connections_impl.hpp.

Constructor & Destructor Documentation

◆ SThrottleStats()

SThrottleStats::SThrottleStats ( SThrottleParams  params)
inline

Definition at line 180 of file srv_connections_impl.hpp.

References Reset().

Member Function Documentation

◆ Adjust()

void SThrottleStats::Adjust ( SNetServerImpl server_impl,
int  err_code 
)

◆ Check()

void SThrottleStats::Check ( SNetServerImpl server_impl)

◆ Discover()

void SThrottleStats::Discover ( )

◆ Reset()

void SThrottleStats::Reset ( void  )
private

Definition at line 755 of file srv_connections.cpp.

References m_IOFailureRegister, m_NumberOfConsecutiveIOFailures, and m_Throttled.

Referenced by Check(), and SThrottleStats().

Member Data Documentation

◆ m_DiscoveredAfterThrottling

bool SThrottleStats::m_DiscoveredAfterThrottling
private

Definition at line 193 of file srv_connections_impl.hpp.

Referenced by Adjust(), Check(), and Discover().

◆ m_IOFailureRegister

pair<bitset<SThrottleParams::SIOFailureThreshold::kMaxDenominator>, size_t> SThrottleStats::m_IOFailureRegister
private

Definition at line 191 of file srv_connections_impl.hpp.

Referenced by Adjust(), and Reset().

◆ m_NumberOfConsecutiveIOFailures

int SThrottleStats::m_NumberOfConsecutiveIOFailures
private

Definition at line 190 of file srv_connections_impl.hpp.

Referenced by Adjust(), and Reset().

◆ m_Params

const SThrottleParams SThrottleStats::m_Params
private

Definition at line 189 of file srv_connections_impl.hpp.

Referenced by Adjust(), and Check().

◆ m_Throttled

bool SThrottleStats::m_Throttled
private

Definition at line 192 of file srv_connections_impl.hpp.

Referenced by Adjust(), Check(), and Reset().

◆ m_ThrottledUntil

CTime SThrottleStats::m_ThrottledUntil
private

Definition at line 195 of file srv_connections_impl.hpp.

Referenced by Adjust(), and Check().

◆ m_ThrottleLock

CFastMutex SThrottleStats::m_ThrottleLock
private

Definition at line 196 of file srv_connections_impl.hpp.

Referenced by Adjust(), Check(), and Discover().

◆ m_ThrottleMessage

string SThrottleStats::m_ThrottleMessage
private

Definition at line 194 of file srv_connections_impl.hpp.

Referenced by Adjust(), and Check().


The documentation for this struct was generated from the following files:
Modified on Sat Jun 15 11:49:23 2024 by modify_doxy.py rev. 669887