Public Member Functions | Private Member Functions | Private Attributes | List of all members
grpc_core::channelz::SubchannelNode Class Reference

#include <client_channel_channelz.h>

Inheritance diagram for grpc_core::channelz::SubchannelNode:
Inheritance graph
[legend]

Public Member Functions

void AddTraceEvent (ChannelTrace::Severity severity, const grpc_slice &data)
 
void AddTraceEventWithReference (ChannelTrace::Severity severity, const grpc_slice &data, RefCountedPtr< BaseNode > referenced_channel)
 
void RecordCallFailed ()
 
void RecordCallStarted ()
 
void RecordCallSucceeded ()
 
Json RenderJson () override
 
void SetChildSocket (RefCountedPtr< SocketNode > socket)
 
 SubchannelNode (std::string target_address, size_t channel_tracer_max_nodes)
 
void UpdateConnectivityState (grpc_connectivity_state state)
 
 ~SubchannelNode () override
 
- Public Member Functions inherited from grpc_core::channelz::BaseNode
const std::string & name () const
 
std::string RenderJsonString ()
 
EntityType type () const
 
intptr_t uuid () const
 
 ~BaseNode () override
 
- Public Member Functions inherited from grpc_core::RefCounted< BaseNode >
RefCountedoperator= (const RefCounted &)=delete
 
RefCountedPtr< BaseNode > Ref () GRPC_MUST_USE_RESULT
 
RefCountedPtr< BaseNode > Ref (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
 RefCounted (const RefCounted &)=delete
 
RefCountedPtr< BaseNode > RefIfNonZero () GRPC_MUST_USE_RESULT
 
RefCountedPtr< BaseNode > RefIfNonZero (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

RefCountedPtr< SocketNode > child_socket_ ABSL_GUARDED_BY (socket_mu_)
 

Private Attributes

CallCountingHelper call_counter_
 
std::atomic< grpc_connectivity_stateconnectivity_state_ {GRPC_CHANNEL_IDLE}
 
Mutex socket_mu_
 
std::string target_
 
ChannelTrace trace_
 

Additional Inherited Members

- Public Types inherited from grpc_core::channelz::BaseNode
enum  EntityType {
  EntityType::kTopLevelChannel, EntityType::kInternalChannel, EntityType::kSubchannel, EntityType::kServer,
  EntityType::kSocket
}
 
- Public Types inherited from grpc_core::RefCounted< BaseNode >
using RefCountedChildType = BaseNode
 
- Protected Member Functions inherited from grpc_core::channelz::BaseNode
 BaseNode (EntityType type, std::string name)
 
- Protected Member Functions inherited from grpc_core::RefCounted< BaseNode >
 RefCounted (const char *trace=nullptr, intptr_t initial_refcount=1)
 

Detailed Description

Definition at line 44 of file client_channel_channelz.h.

Constructor & Destructor Documentation

◆ SubchannelNode()

grpc_core::channelz::SubchannelNode::SubchannelNode ( std::string  target_address,
size_t  channel_tracer_max_nodes 
)

Definition at line 32 of file client_channel_channelz.cc.

◆ ~SubchannelNode()

grpc_core::channelz::SubchannelNode::~SubchannelNode ( )
override

Definition at line 38 of file client_channel_channelz.cc.

Member Function Documentation

◆ ABSL_GUARDED_BY()

RefCountedPtr<SocketNode> child_socket_ grpc_core::channelz::SubchannelNode::ABSL_GUARDED_BY ( socket_mu_  )
private

◆ AddTraceEvent()

void grpc_core::channelz::SubchannelNode::AddTraceEvent ( ChannelTrace::Severity  severity,
const grpc_slice data 
)
inline

Definition at line 60 of file client_channel_channelz.h.

◆ AddTraceEventWithReference()

void grpc_core::channelz::SubchannelNode::AddTraceEventWithReference ( ChannelTrace::Severity  severity,
const grpc_slice data,
RefCountedPtr< BaseNode referenced_channel 
)
inline

Definition at line 63 of file client_channel_channelz.h.

◆ RecordCallFailed()

void grpc_core::channelz::SubchannelNode::RecordCallFailed ( )
inline

Definition at line 70 of file client_channel_channelz.h.

◆ RecordCallStarted()

void grpc_core::channelz::SubchannelNode::RecordCallStarted ( )
inline

Definition at line 69 of file client_channel_channelz.h.

◆ RecordCallSucceeded()

void grpc_core::channelz::SubchannelNode::RecordCallSucceeded ( )
inline

Definition at line 71 of file client_channel_channelz.h.

◆ RenderJson()

Json grpc_core::channelz::SubchannelNode::RenderJson ( )
overridevirtual

Implements grpc_core::channelz::BaseNode.

Definition at line 49 of file client_channel_channelz.cc.

◆ SetChildSocket()

void grpc_core::channelz::SubchannelNode::SetChildSocket ( RefCountedPtr< SocketNode socket)

Definition at line 44 of file client_channel_channelz.cc.

◆ UpdateConnectivityState()

void grpc_core::channelz::SubchannelNode::UpdateConnectivityState ( grpc_connectivity_state  state)

Definition at line 40 of file client_channel_channelz.cc.

Member Data Documentation

◆ call_counter_

CallCountingHelper grpc_core::channelz::SubchannelNode::call_counter_
private

Definition at line 78 of file client_channel_channelz.h.

◆ connectivity_state_

std::atomic<grpc_connectivity_state> grpc_core::channelz::SubchannelNode::connectivity_state_ {GRPC_CHANNEL_IDLE}
private

Definition at line 74 of file client_channel_channelz.h.

◆ socket_mu_

Mutex grpc_core::channelz::SubchannelNode::socket_mu_
private

Definition at line 75 of file client_channel_channelz.h.

◆ target_

std::string grpc_core::channelz::SubchannelNode::target_
private

Definition at line 77 of file client_channel_channelz.h.

◆ trace_

ChannelTrace grpc_core::channelz::SubchannelNode::trace_
private

Definition at line 79 of file client_channel_channelz.h.


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


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