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

Function status_str

src/brpc/server.cpp:106–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104extern const char* const g_server_info_prefix = "rpc_server";
105
106const char* status_str(Server::Status s) {
107 switch (s) {
108 case Server::UNINITIALIZED: return "UNINITIALIZED";
109 case Server::READY: return "READY";
110 case Server::RUNNING: return "RUNNING";
111 case Server::STOPPING: return "STOPPING";
112 }
113 return "UNKNOWN_STATUS";
114}
115
116butil::static_atomic<int> g_running_server_count = BUTIL_STATIC_ATOMIC_INIT(0);
117

Callers 4

StartInternalMethod · 0.85
AddServiceInternalMethod · 0.85
RemoveServiceMethod · 0.85
ClearServicesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected