Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
grpc_core::XdsClusterLocalityStats Class Reference

#include <xds_client_stats.h>

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

Classes

struct  BackendMetric
 
struct  Snapshot
 

Public Member Functions

void AddCallFinished (bool fail=false)
 
void AddCallStarted ()
 
Snapshot GetSnapshotAndReset ()
 
 XdsClusterLocalityStats (RefCountedPtr< XdsClient > xds_client, const XdsBootstrap::XdsServer &lrs_server_, absl::string_view cluster_name, absl::string_view eds_service_name, RefCountedPtr< XdsLocalityName > name)
 
 ~XdsClusterLocalityStats () override
 
- Public Member Functions inherited from grpc_core::RefCounted< XdsClusterLocalityStats >
RefCountedoperator= (const RefCounted &)=delete
 
RefCountedPtr< XdsClusterLocalityStatsRef () GRPC_MUST_USE_RESULT
 
RefCountedPtr< XdsClusterLocalityStatsRef (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
 RefCounted (const RefCounted &)=delete
 
RefCountedPtr< XdsClusterLocalityStatsRefIfNonZero () GRPC_MUST_USE_RESULT
 
RefCountedPtr< XdsClusterLocalityStatsRefIfNonZero (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
 

Private Member Functions

std::map< std::string, BackendMetric > backend_metrics_ ABSL_GUARDED_BY (backend_metrics_mu_)
 

Private Attributes

Mutex backend_metrics_mu_
 
absl::string_view cluster_name_
 
absl::string_view eds_service_name_
 
const XdsBootstrap::XdsServerlrs_server_
 
RefCountedPtr< XdsLocalityNamename_
 
std::atomic< uint64_ttotal_error_requests_ {0}
 
std::atomic< uint64_ttotal_issued_requests_ {0}
 
std::atomic< uint64_ttotal_requests_in_progress_ {0}
 
std::atomic< uint64_ttotal_successful_requests_ {0}
 
RefCountedPtr< XdsClientxds_client_
 

Additional Inherited Members

- Public Types inherited from grpc_core::RefCounted< XdsClusterLocalityStats >
using RefCountedChildType = XdsClusterLocalityStats
 
- Protected Member Functions inherited from grpc_core::RefCounted< XdsClusterLocalityStats >
 RefCounted (const char *trace=nullptr, intptr_t initial_refcount=1)
 

Detailed Description

Definition at line 158 of file xds_client_stats.h.

Constructor & Destructor Documentation

◆ XdsClusterLocalityStats()

grpc_core::XdsClusterLocalityStats::XdsClusterLocalityStats ( RefCountedPtr< XdsClient xds_client,
const XdsBootstrap::XdsServer lrs_server_,
absl::string_view  cluster_name,
absl::string_view  eds_service_name,
RefCountedPtr< XdsLocalityName name 
)

Definition at line 96 of file xds_client_stats.cc.

◆ ~XdsClusterLocalityStats()

grpc_core::XdsClusterLocalityStats::~XdsClusterLocalityStats ( )
override

Definition at line 118 of file xds_client_stats.cc.

Member Function Documentation

◆ ABSL_GUARDED_BY()

std::map<std::string, BackendMetric> backend_metrics_ grpc_core::XdsClusterLocalityStats::ABSL_GUARDED_BY ( backend_metrics_mu_  )
private

◆ AddCallFinished()

void grpc_core::XdsClusterLocalityStats::AddCallFinished ( bool  fail = false)

Definition at line 152 of file xds_client_stats.cc.

◆ AddCallStarted()

void grpc_core::XdsClusterLocalityStats::AddCallStarted ( )

Definition at line 147 of file xds_client_stats.cc.

◆ GetSnapshotAndReset()

XdsClusterLocalityStats::Snapshot grpc_core::XdsClusterLocalityStats::GetSnapshotAndReset ( )

Definition at line 133 of file xds_client_stats.cc.

Member Data Documentation

◆ backend_metrics_mu_

Mutex grpc_core::XdsClusterLocalityStats::backend_metrics_mu_
private

Definition at line 235 of file xds_client_stats.h.

◆ cluster_name_

absl::string_view grpc_core::XdsClusterLocalityStats::cluster_name_
private

Definition at line 222 of file xds_client_stats.h.

◆ eds_service_name_

absl::string_view grpc_core::XdsClusterLocalityStats::eds_service_name_
private

Definition at line 223 of file xds_client_stats.h.

◆ lrs_server_

const XdsBootstrap::XdsServer& grpc_core::XdsClusterLocalityStats::lrs_server_
private

Definition at line 221 of file xds_client_stats.h.

◆ name_

RefCountedPtr<XdsLocalityName> grpc_core::XdsClusterLocalityStats::name_
private

Definition at line 224 of file xds_client_stats.h.

◆ total_error_requests_

std::atomic<uint64_t> grpc_core::XdsClusterLocalityStats::total_error_requests_ {0}
private

Definition at line 228 of file xds_client_stats.h.

◆ total_issued_requests_

std::atomic<uint64_t> grpc_core::XdsClusterLocalityStats::total_issued_requests_ {0}
private

Definition at line 229 of file xds_client_stats.h.

◆ total_requests_in_progress_

std::atomic<uint64_t> grpc_core::XdsClusterLocalityStats::total_requests_in_progress_ {0}
private

Definition at line 227 of file xds_client_stats.h.

◆ total_successful_requests_

std::atomic<uint64_t> grpc_core::XdsClusterLocalityStats::total_successful_requests_ {0}
private

Definition at line 226 of file xds_client_stats.h.

◆ xds_client_

RefCountedPtr<XdsClient> grpc_core::XdsClusterLocalityStats::xds_client_
private

Definition at line 220 of file xds_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:38