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

#include <channelz.h>

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

Public Member Functions

void AddChildListenSocket (RefCountedPtr< ListenSocketNode > node)
 
void AddChildSocket (RefCountedPtr< SocketNode > node)
 
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 ()
 
void RemoveChildListenSocket (intptr_t child_uuid)
 
void RemoveChildSocket (intptr_t child_uuid)
 
Json RenderJson () override
 
std::string RenderServerSockets (intptr_t start_socket_id, intptr_t max_results)
 
 ServerNode (size_t channel_tracer_max_nodes)
 
 ~ServerNode () 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 Attributes

CallCountingHelper call_counter_
 
std::map< intptr_t, RefCountedPtr< ListenSocketNode > > child_listen_sockets_
 
Mutex child_mu_
 
std::map< intptr_t, RefCountedPtr< SocketNode > > child_sockets_
 
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 239 of file channelz.h.

Constructor & Destructor Documentation

◆ ServerNode()

grpc_core::channelz::ServerNode::ServerNode ( size_t  channel_tracer_max_nodes)
explicit

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

◆ ~ServerNode()

grpc_core::channelz::ServerNode::~ServerNode ( )
override

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

Member Function Documentation

◆ AddChildListenSocket()

void grpc_core::channelz::ServerNode::AddChildListenSocket ( RefCountedPtr< ListenSocketNode node)

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

◆ AddChildSocket()

void grpc_core::channelz::ServerNode::AddChildSocket ( RefCountedPtr< SocketNode node)

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

◆ AddTraceEvent()

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

Definition at line 259 of file channelz.h.

◆ AddTraceEventWithReference()

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

Definition at line 262 of file channelz.h.

◆ RecordCallFailed()

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

Definition at line 269 of file channelz.h.

◆ RecordCallStarted()

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

Definition at line 268 of file channelz.h.

◆ RecordCallSucceeded()

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

Definition at line 270 of file channelz.h.

◆ RemoveChildListenSocket()

void grpc_core::channelz::ServerNode::RemoveChildListenSocket ( intptr_t  child_uuid)

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

◆ RemoveChildSocket()

void grpc_core::channelz::ServerNode::RemoveChildSocket ( intptr_t  child_uuid)

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

◆ RenderJson()

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

Implements grpc_core::channelz::BaseNode.

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

◆ RenderServerSockets()

std::string grpc_core::channelz::ServerNode::RenderServerSockets ( intptr_t  start_socket_id,
intptr_t  max_results 
)

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

Member Data Documentation

◆ call_counter_

CallCountingHelper grpc_core::channelz::ServerNode::call_counter_
private

Definition at line 273 of file channelz.h.

◆ child_listen_sockets_

std::map<intptr_t, RefCountedPtr<ListenSocketNode> > grpc_core::channelz::ServerNode::child_listen_sockets_
private

Definition at line 277 of file channelz.h.

◆ child_mu_

Mutex grpc_core::channelz::ServerNode::child_mu_
private

Definition at line 275 of file channelz.h.

◆ child_sockets_

std::map<intptr_t, RefCountedPtr<SocketNode> > grpc_core::channelz::ServerNode::child_sockets_
private

Definition at line 276 of file channelz.h.

◆ trace_

ChannelTrace grpc_core::channelz::ServerNode::trace_
private

Definition at line 274 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