MCPcopy Create free account
hub / github.com/apache/brpc / service_name

Method service_name

src/brpc/server.cpp:416–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414}
415
416const std::string Server::ServiceProperty::service_name() const {
417 if (service) {
418 return butil::EnsureString(service->GetDescriptor()->full_name());
419 } else if (restful_map) {
420 return restful_map->service_name();
421 }
422 const static std::string s_unknown_name = "";
423 return s_unknown_name;
424}
425
426Server::Server(ProfilerLinker)
427 : _session_local_data_pool(NULL)

Callers 9

ProcessRpcRequestMethod · 0.80
ProcessRpcRequestMethod · 0.80
ProcessRpcRequestMethod · 0.80
AddServiceInternalMethod · 0.80
ProcessRpcRequestFunction · 0.80
PackRpcRequestFunction · 0.80
ProcessHuluRequestFunction · 0.80
PackHuluRequestFunction · 0.80
no_methodMethod · 0.80

Calls 2

EnsureStringFunction · 0.85
GetDescriptorMethod · 0.45

Tested by 2

ProcessRpcRequestMethod · 0.64
ProcessRpcRequestMethod · 0.64