GRPC Core  9.0.0
Public Member Functions | Static Public Member Functions | Friends
grpc_core::channelz::ChannelNode Class Reference

#include <channelz.h>

Public Member Functions

 ChannelNode (std::string target, size_t channel_tracer_max_nodes, intptr_t parent_uuid)
 
intptr_t parent_uuid () const
 
grpc_jsonRenderJson () override
 
void AddTraceEvent (ChannelTrace::Severity severity, const grpc_slice &data)
 
void AddTraceEventWithReference (ChannelTrace::Severity severity, const grpc_slice &data, RefCountedPtr< BaseNode > referenced_channel)
 
void RecordCallStarted ()
 
void RecordCallFailed ()
 
void RecordCallSucceeded ()
 
void SetConnectivityState (grpc_connectivity_state state)
 
void AddChildChannel (intptr_t child_uuid)
 
void RemoveChildChannel (intptr_t child_uuid)
 
void AddChildSubchannel (intptr_t child_uuid)
 
void RemoveChildSubchannel (intptr_t child_uuid)
 
- Public Member Functions inherited from grpc_core::channelz::BaseNode
virtual ~BaseNode ()
 
char * RenderJsonString ()
 
EntityType type () const
 
intptr_t uuid () const
 
const std::string & name () const
 
- Public Member Functions inherited from grpc_core::RefCounted< BaseNode >
 ~RefCounted ()=default
 
RefCountedPtr< BaseNode > Ref () GRPC_MUST_USE_RESULT
 
RefCountedPtr< BaseNode > Ref (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
void Unref ()
 
void Unref (const DebugLocation &location, const char *reason)
 
bool RefIfNonZero ()
 
bool RefIfNonZero (const DebugLocation &location, const char *reason)
 
 RefCounted (const RefCounted &)=delete
 
RefCountedoperator= (const RefCounted &)=delete
 
- Public Member Functions inherited from grpc_core::PolymorphicRefCount
virtual ~PolymorphicRefCount ()=default
 

Static Public Member Functions

static const char * GetChannelConnectivityStateChangeString (grpc_connectivity_state state)
 

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
}
 
- 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 (TraceFlagT *trace_flag=nullptr, intptr_t initial_refcount=1)
 

Constructor & Destructor Documentation

◆ ChannelNode()

grpc_core::channelz::ChannelNode::ChannelNode ( std::string  target,
size_t  channel_tracer_max_nodes,
intptr_t  parent_uuid 
)

Member Function Documentation

◆ AddChildChannel()

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

◆ AddChildSubchannel()

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

◆ AddTraceEvent()

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

◆ AddTraceEventWithReference()

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

◆ GetChannelConnectivityStateChangeString()

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

◆ parent_uuid()

intptr_t grpc_core::channelz::ChannelNode::parent_uuid ( ) const
inline

◆ RecordCallFailed()

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

◆ RecordCallStarted()

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

◆ RecordCallSucceeded()

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

◆ RemoveChildChannel()

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

◆ RemoveChildSubchannel()

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

◆ RenderJson()

grpc_json * grpc_core::channelz::ChannelNode::RenderJson ( )
overridevirtual

◆ SetConnectivityState()

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

Friends And Related Function Documentation

◆ testing::ChannelNodePeer

friend class testing::ChannelNodePeer
friend

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