Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
grpc_core::GrpcLbClientStats Class Reference

#include <grpclb_client_stats.h>

Inheritance diagram for grpc_core::GrpcLbClientStats:
Inheritance graph
[legend]

Classes

struct  DropTokenCount
 

Public Types

typedef absl::InlinedVector< DropTokenCount, 10 > DroppedCallCounts
 
- Public Types inherited from grpc_core::RefCounted< GrpcLbClientStats >
using RefCountedChildType = GrpcLbClientStats
 

Public Member Functions

void AddCallDropped (const char *token)
 
void AddCallFinished (bool finished_with_client_failed_to_send, bool finished_known_received)
 
void AddCallStarted ()
 
void Get (int64_t *num_calls_started, int64_t *num_calls_finished, int64_t *num_calls_finished_with_client_failed_to_send, int64_t *num_calls_finished_known_received, std::unique_ptr< DroppedCallCounts > *drop_token_counts)
 
- Public Member Functions inherited from grpc_core::RefCounted< GrpcLbClientStats >
RefCountedoperator= (const RefCounted &)=delete
 
RefCountedPtr< GrpcLbClientStatsRef () GRPC_MUST_USE_RESULT
 
RefCountedPtr< GrpcLbClientStatsRef (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
 RefCounted (const RefCounted &)=delete
 
RefCountedPtr< GrpcLbClientStatsRefIfNonZero () GRPC_MUST_USE_RESULT
 
RefCountedPtr< GrpcLbClientStatsRefIfNonZero (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
void Unref ()
 
void Unref (const DebugLocation &location, const char *reason)
 
 ~RefCounted ()=default
 
- Public Member Functions inherited from grpc_core::PolymorphicRefCount
virtual ~PolymorphicRefCount ()=default
 

Static Public Member Functions

static void Destroy (void *arg)
 

Private Member Functions

std::unique_ptr< DroppedCallCounts > drop_token_counts_ ABSL_GUARDED_BY (drop_count_mu_)
 

Private Attributes

Mutex drop_count_mu_
 
gpr_atm num_calls_finished_ = 0
 
gpr_atm num_calls_finished_known_received_ = 0
 
gpr_atm num_calls_finished_with_client_failed_to_send_ = 0
 
gpr_atm num_calls_started_ = 0
 

Additional Inherited Members

- Protected Member Functions inherited from grpc_core::RefCounted< GrpcLbClientStats >
 RefCounted (const char *trace=nullptr, intptr_t initial_refcount=1)
 

Detailed Description

Definition at line 40 of file grpclb_client_stats.h.

Member Typedef Documentation

◆ DroppedCallCounts

Definition at line 50 of file grpclb_client_stats.h.

Member Function Documentation

◆ ABSL_GUARDED_BY()

std::unique_ptr<DroppedCallCounts> drop_token_counts_ grpc_core::GrpcLbClientStats::ABSL_GUARDED_BY ( drop_count_mu_  )
private

◆ AddCallDropped()

void grpc_core::GrpcLbClientStats::AddCallDropped ( const char *  token)

Definition at line 50 of file grpclb_client_stats.cc.

◆ AddCallFinished()

void grpc_core::GrpcLbClientStats::AddCallFinished ( bool  finished_with_client_failed_to_send,
bool  finished_known_received 
)

Definition at line 38 of file grpclb_client_stats.cc.

◆ AddCallStarted()

void grpc_core::GrpcLbClientStats::AddCallStarted ( )

Definition at line 34 of file grpclb_client_stats.cc.

◆ Destroy()

static void grpc_core::GrpcLbClientStats::Destroy ( void *  arg)
inlinestatic

Definition at line 65 of file grpclb_client_stats.h.

◆ Get()

void grpc_core::GrpcLbClientStats::Get ( int64_t num_calls_started,
int64_t num_calls_finished,
int64_t num_calls_finished_with_client_failed_to_send,
int64_t num_calls_finished_known_received,
std::unique_ptr< DroppedCallCounts > *  drop_token_counts 
)

Definition at line 77 of file grpclb_client_stats.cc.

Member Data Documentation

◆ drop_count_mu_

Mutex grpc_core::GrpcLbClientStats::drop_count_mu_
private

Definition at line 74 of file grpclb_client_stats.h.

◆ num_calls_finished_

gpr_atm grpc_core::GrpcLbClientStats::num_calls_finished_ = 0
private

Definition at line 71 of file grpclb_client_stats.h.

◆ num_calls_finished_known_received_

gpr_atm grpc_core::GrpcLbClientStats::num_calls_finished_known_received_ = 0
private

Definition at line 73 of file grpclb_client_stats.h.

◆ num_calls_finished_with_client_failed_to_send_

gpr_atm grpc_core::GrpcLbClientStats::num_calls_finished_with_client_failed_to_send_ = 0
private

Definition at line 72 of file grpclb_client_stats.h.

◆ num_calls_started_

gpr_atm grpc_core::GrpcLbClientStats::num_calls_started_ = 0
private

Definition at line 70 of file grpclb_client_stats.h.


The documentation for this class was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:36