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

#include <channelz.h>

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

Classes

struct  Security
 

Public Member Functions

void RecordKeepaliveSent ()
 
void RecordMessageReceived ()
 
void RecordMessagesSent (uint32_t num_sent)
 
void RecordStreamFailed ()
 
void RecordStreamStartedFromLocal ()
 
void RecordStreamStartedFromRemote ()
 
void RecordStreamSucceeded ()
 
const std::string & remote ()
 
Json RenderJson () override
 
 SocketNode (std::string local, std::string remote, std::string name, RefCountedPtr< Security > security)
 
 ~SocketNode () 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

std::atomic< int64_tkeepalives_sent_ {0}
 
std::atomic< gpr_cycle_counter > last_local_stream_created_cycle_ {0}
 
std::atomic< gpr_cycle_counter > last_message_received_cycle_ {0}
 
std::atomic< gpr_cycle_counter > last_message_sent_cycle_ {0}
 
std::atomic< gpr_cycle_counter > last_remote_stream_created_cycle_ {0}
 
std::string local_
 
std::atomic< int64_tmessages_received_ {0}
 
std::atomic< int64_tmessages_sent_ {0}
 
std::string remote_
 
const RefCountedPtr< Securitysecurity_
 
std::atomic< int64_tstreams_failed_ {0}
 
std::atomic< int64_tstreams_started_ {0}
 
std::atomic< int64_tstreams_succeeded_ {0}
 

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

Constructor & Destructor Documentation

◆ SocketNode()

grpc_core::channelz::SocketNode::SocketNode ( std::string  local,
std::string  remote,
std::string  name,
RefCountedPtr< Security security 
)

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

◆ ~SocketNode()

grpc_core::channelz::SocketNode::~SocketNode ( )
inlineoverride

Definition at line 314 of file channelz.h.

Member Function Documentation

◆ RecordKeepaliveSent()

void grpc_core::channelz::SocketNode::RecordKeepaliveSent ( )
inline

Definition at line 328 of file channelz.h.

◆ RecordMessageReceived()

void grpc_core::channelz::SocketNode::RecordMessageReceived ( )

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

◆ RecordMessagesSent()

void grpc_core::channelz::SocketNode::RecordMessagesSent ( uint32_t  num_sent)

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

◆ RecordStreamFailed()

void grpc_core::channelz::SocketNode::RecordStreamFailed ( )
inline

Definition at line 323 of file channelz.h.

◆ RecordStreamStartedFromLocal()

void grpc_core::channelz::SocketNode::RecordStreamStartedFromLocal ( )

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

◆ RecordStreamStartedFromRemote()

void grpc_core::channelz::SocketNode::RecordStreamStartedFromRemote ( )

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

◆ RecordStreamSucceeded()

void grpc_core::channelz::SocketNode::RecordStreamSucceeded ( )
inline

Definition at line 320 of file channelz.h.

◆ remote()

const std::string& grpc_core::channelz::SocketNode::remote ( )
inline

Definition at line 332 of file channelz.h.

◆ RenderJson()

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

Implements grpc_core::channelz::BaseNode.

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

Member Data Documentation

◆ keepalives_sent_

std::atomic<int64_t> grpc_core::channelz::SocketNode::keepalives_sent_ {0}
private

Definition at line 340 of file channelz.h.

◆ last_local_stream_created_cycle_

std::atomic<gpr_cycle_counter> grpc_core::channelz::SocketNode::last_local_stream_created_cycle_ {0}
private

Definition at line 341 of file channelz.h.

◆ last_message_received_cycle_

std::atomic<gpr_cycle_counter> grpc_core::channelz::SocketNode::last_message_received_cycle_ {0}
private

Definition at line 344 of file channelz.h.

◆ last_message_sent_cycle_

std::atomic<gpr_cycle_counter> grpc_core::channelz::SocketNode::last_message_sent_cycle_ {0}
private

Definition at line 343 of file channelz.h.

◆ last_remote_stream_created_cycle_

std::atomic<gpr_cycle_counter> grpc_core::channelz::SocketNode::last_remote_stream_created_cycle_ {0}
private

Definition at line 342 of file channelz.h.

◆ local_

std::string grpc_core::channelz::SocketNode::local_
private

Definition at line 345 of file channelz.h.

◆ messages_received_

std::atomic<int64_t> grpc_core::channelz::SocketNode::messages_received_ {0}
private

Definition at line 339 of file channelz.h.

◆ messages_sent_

std::atomic<int64_t> grpc_core::channelz::SocketNode::messages_sent_ {0}
private

Definition at line 338 of file channelz.h.

◆ remote_

std::string grpc_core::channelz::SocketNode::remote_
private

Definition at line 346 of file channelz.h.

◆ security_

const RefCountedPtr<Security> grpc_core::channelz::SocketNode::security_
private

Definition at line 347 of file channelz.h.

◆ streams_failed_

std::atomic<int64_t> grpc_core::channelz::SocketNode::streams_failed_ {0}
private

Definition at line 337 of file channelz.h.

◆ streams_started_

std::atomic<int64_t> grpc_core::channelz::SocketNode::streams_started_ {0}
private

Definition at line 335 of file channelz.h.

◆ streams_succeeded_

std::atomic<int64_t> grpc_core::channelz::SocketNode::streams_succeeded_ {0}
private

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