Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
grpc_core::channelz::ChannelNode Class Reference

#include <channelz.h>

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

Public Member Functions

void AddChildChannel (intptr_t child_uuid)
 
void AddChildSubchannel (intptr_t child_uuid)
 
void AddTraceEvent (ChannelTrace::Severity severity, const grpc_slice &data)
 
void AddTraceEventWithReference (ChannelTrace::Severity severity, const grpc_slice &data, RefCountedPtr< BaseNode > referenced_channel)
 
 ChannelNode (std::string target, size_t channel_tracer_max_nodes, bool is_internal_channel)
 
void RecordCallFailed ()
 
void RecordCallStarted ()
 
void RecordCallSucceeded ()
 
void RemoveChildChannel (intptr_t child_uuid)
 
void RemoveChildSubchannel (intptr_t child_uuid)
 
Json RenderJson () override
 
void SetConnectivityState (grpc_connectivity_state state)
 
- 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
 

Static Public Member Functions

static absl::string_view ChannelArgName ()
 
static const char * GetChannelConnectivityStateChangeString (grpc_connectivity_state state)
 

Private Member Functions

void PopulateChildRefs (Json::Object *json)
 

Private Attributes

CallCountingHelper call_counter_
 
std::set< intptr_tchild_channels_
 
Mutex child_mu_
 
std::set< intptr_tchild_subchannels_
 
std::atomic< intconnectivity_state_ {0}
 
std::string target_
 
ChannelTrace trace_
 

Friends

class testing::ChannelNodePeer
 

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 178 of file channelz.h.

Constructor & Destructor Documentation

◆ ChannelNode()

grpc_core::channelz::ChannelNode::ChannelNode ( std::string  target,
size_t  channel_tracer_max_nodes,
bool  is_internal_channel 
)

Definition at line 143 of file src/core/lib/channel/channelz.cc.

Member Function Documentation

◆ AddChildChannel()

void grpc_core::channelz::ChannelNode::AddChildChannel ( intptr_t  child_uuid)

Definition at line 231 of file src/core/lib/channel/channelz.cc.

◆ AddChildSubchannel()

void grpc_core::channelz::ChannelNode::AddChildSubchannel ( intptr_t  child_uuid)

Definition at line 241 of file src/core/lib/channel/channelz.cc.

◆ AddTraceEvent()

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

Definition at line 194 of file channelz.h.

◆ AddTraceEventWithReference()

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

Definition at line 197 of file channelz.h.

◆ ChannelArgName()

static absl::string_view grpc_core::channelz::ChannelNode::ChannelArgName ( )
inlinestatic

Definition at line 183 of file channelz.h.

◆ GetChannelConnectivityStateChangeString()

const char * grpc_core::channelz::ChannelNode::GetChannelConnectivityStateChangeString ( grpc_connectivity_state  state)
static

Definition at line 151 of file src/core/lib/channel/channelz.cc.

◆ PopulateChildRefs()

void grpc_core::channelz::ChannelNode::PopulateChildRefs ( Json::Object json)
private

Definition at line 203 of file src/core/lib/channel/channelz.cc.

◆ RecordCallFailed()

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

Definition at line 204 of file channelz.h.

◆ RecordCallStarted()

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

Definition at line 203 of file channelz.h.

◆ RecordCallSucceeded()

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

Definition at line 205 of file channelz.h.

◆ RemoveChildChannel()

void grpc_core::channelz::ChannelNode::RemoveChildChannel ( intptr_t  child_uuid)

Definition at line 236 of file src/core/lib/channel/channelz.cc.

◆ RemoveChildSubchannel()

void grpc_core::channelz::ChannelNode::RemoveChildSubchannel ( intptr_t  child_uuid)

Definition at line 246 of file src/core/lib/channel/channelz.cc.

◆ RenderJson()

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

Implements grpc_core::channelz::BaseNode.

Definition at line 168 of file src/core/lib/channel/channelz.cc.

◆ SetConnectivityState()

void grpc_core::channelz::ChannelNode::SetConnectivityState ( grpc_connectivity_state  state)

Definition at line 225 of file src/core/lib/channel/channelz.cc.

Friends And Related Function Documentation

◆ testing::ChannelNodePeer

friend class testing::ChannelNodePeer
friend

Definition at line 221 of file channelz.h.

Member Data Documentation

◆ call_counter_

CallCountingHelper grpc_core::channelz::ChannelNode::call_counter_
private

Definition at line 226 of file channelz.h.

◆ child_channels_

std::set<intptr_t> grpc_core::channelz::ChannelNode::child_channels_
private

Definition at line 234 of file channelz.h.

◆ child_mu_

Mutex grpc_core::channelz::ChannelNode::child_mu_
private

Definition at line 233 of file channelz.h.

◆ child_subchannels_

std::set<intptr_t> grpc_core::channelz::ChannelNode::child_subchannels_
private

Definition at line 235 of file channelz.h.

◆ connectivity_state_

std::atomic<int> grpc_core::channelz::ChannelNode::connectivity_state_ {0}
private

Definition at line 231 of file channelz.h.

◆ target_

std::string grpc_core::channelz::ChannelNode::target_
private

Definition at line 225 of file channelz.h.

◆ trace_

ChannelTrace grpc_core::channelz::ChannelNode::trace_
private

Definition at line 227 of file 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