Home
last modified time | relevance | path

Searched refs:ChannelzRegistry (Results 1 – 11 of 11) sorted by relevance

/external/grpc-grpc/src/core/lib/channel/
Dchannelz_registry.cc39 ChannelzRegistry* g_channelz_registry = nullptr;
43 void ChannelzRegistry::Init() { g_channelz_registry = New<ChannelzRegistry>(); } in Init()
45 void ChannelzRegistry::Shutdown() { Delete(g_channelz_registry); } in Shutdown()
47 ChannelzRegistry* ChannelzRegistry::Default() { in Default()
52 ChannelzRegistry::ChannelzRegistry() { gpr_mu_init(&mu_); } in ChannelzRegistry() function in grpc_core::channelz::ChannelzRegistry
54 ChannelzRegistry::~ChannelzRegistry() { gpr_mu_destroy(&mu_); } in ~ChannelzRegistry()
56 intptr_t ChannelzRegistry::InternalRegister(BaseNode* node) { in InternalRegister()
63 void ChannelzRegistry::InternalUnregister(intptr_t uuid) { in InternalUnregister()
70 BaseNode* ChannelzRegistry::InternalGet(intptr_t uuid) { in InternalGet()
78 char* ChannelzRegistry::InternalGetTopChannels(intptr_t start_channel_id) { in InternalGetTopChannels()
[all …]
Dchannelz_registry.h35 class ChannelzRegistry {
65 ChannelzRegistry();
66 ~ChannelzRegistry();
69 static ChannelzRegistry* Default();
Dchannelz.cc45 : type_(type), uuid_(ChannelzRegistry::Register(this)) {} in BaseNode()
47 BaseNode::~BaseNode() { ChannelzRegistry::Unregister(uuid_); } in ~BaseNode()
/external/grpc-grpc/test/core/channel/
Dchannelz_registry_test.cc48 intptr_t uuid = ChannelzRegistry::Register(channelz_channel); in TEST()
53 ChannelzRegistry::Unregister(uuid); in TEST()
62 uuids.push_back(ChannelzRegistry::Register(channelz_channel)); in TEST()
72 intptr_t uuid = ChannelzRegistry::Register(channelz_channel); in TEST()
73 BaseNode* retrieved = ChannelzRegistry::Get(uuid); in TEST()
81 intptr_t uuid = ChannelzRegistry::Register(channelz_channel); in TEST()
82 BaseNode* retrieved = ChannelzRegistry::Get(uuid); in TEST()
90 intptr_t uuid = ChannelzRegistry::Register(channelz_channel); in TEST()
92 BaseNode* nonexistant = ChannelzRegistry::Get(uuid + 1); in TEST()
94 BaseNode* retrieved = ChannelzRegistry::Get(uuid); in TEST()
Dchannelz_test.cc88 char* json_str = ChannelzRegistry::GetTopChannels(0); in ValidateGetTopChannels()
107 char* json_str = ChannelzRegistry::GetServers(0); in ValidateGetServers()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/channel/
Dchannelz_registry.cc43 ChannelzRegistry* g_channelz_registry = nullptr;
49 void ChannelzRegistry::Init() { g_channelz_registry = new ChannelzRegistry(); } in Init()
51 void ChannelzRegistry::Shutdown() { delete g_channelz_registry; } in Shutdown()
53 ChannelzRegistry* ChannelzRegistry::Default() { in Default()
58 void ChannelzRegistry::InternalRegister(BaseNode* node) { in InternalRegister()
64 void ChannelzRegistry::InternalUnregister(intptr_t uuid) { in InternalUnregister()
71 RefCountedPtr<BaseNode> ChannelzRegistry::InternalGet(intptr_t uuid) { in InternalGet()
84 std::string ChannelzRegistry::InternalGetTopChannels( in InternalGetTopChannels()
124 std::string ChannelzRegistry::InternalGetServers(intptr_t start_server_id) { in InternalGetServers()
163 void ChannelzRegistry::InternalLogAllEntities() { in InternalLogAllEntities()
[all …]
Dchannelz_registry.h38 class ChannelzRegistry {
72 static ChannelzRegistry* Default();
Dchannelz.cc60 ChannelzRegistry::Register(this); in BaseNode()
63 BaseNode::~BaseNode() { ChannelzRegistry::Unregister(uuid_); } in ~BaseNode()
Dchannelz.h104 friend class ChannelzRegistry;
/external/grpc-grpc/src/core/lib/surface/
Dinit.cc130 grpc_core::channelz::ChannelzRegistry::Init(); in grpc_init()
179 grpc_core::channelz::ChannelzRegistry::Shutdown(); in grpc_shutdown()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/surface/
Dinit.cc146 grpc_core::channelz::ChannelzRegistry::Init(); in grpc_init()
192 grpc_core::channelz::ChannelzRegistry::Shutdown(); in grpc_shutdown_internal_locked()