GRPC C++  1.26.0
Public Types | Public Member Functions | Protected Member Functions | Friends
grpc_core::channelz::BaseNode Class Referenceabstract

#include <channelz.h>

Public Types

enum  EntityType {
  EntityType::kTopLevelChannel, EntityType::kInternalChannel, EntityType::kSubchannel, EntityType::kServer,
  EntityType::kSocket
}
 

Public Member Functions

virtual ~BaseNode ()
 
virtual grpc_jsonRenderJson ()=0
 
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
 

Protected Member Functions

 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)
 

Friends

class ChannelzRegistry
 

Member Enumeration Documentation

◆ EntityType

Enumerator
kTopLevelChannel 
kInternalChannel 
kSubchannel 
kServer 
kSocket 

Constructor & Destructor Documentation

◆ BaseNode()

grpc_core::channelz::BaseNode::BaseNode ( EntityType  type,
std::string  name 
)
protected

◆ ~BaseNode()

virtual grpc_core::channelz::BaseNode::~BaseNode ( )
virtual

Member Function Documentation

◆ name()

const std::string& grpc_core::channelz::BaseNode::name ( ) const
inline

◆ RenderJson()

virtual grpc_json* grpc_core::channelz::BaseNode::RenderJson ( )
pure virtual

◆ RenderJsonString()

char* grpc_core::channelz::BaseNode::RenderJsonString ( )

◆ type()

EntityType grpc_core::channelz::BaseNode::type ( ) const
inline

◆ uuid()

intptr_t grpc_core::channelz::BaseNode::uuid ( ) const
inline

Friends And Related Function Documentation

◆ ChannelzRegistry

friend class ChannelzRegistry
friend

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