MCPcopy Index your code
hub / github.com/grpc/grpc-java / addServer

Method addServer

api/src/main/java/io/grpc/InternalChannelz.java:79–83  ·  view source on GitHub ↗

Adds a server.

(InternalInstrumented<ServerStats> server)

Source from the content-addressed store, hash-verified

77
78 /** Adds a server. */
79 public void addServer(InternalInstrumented<ServerStats> server) {
80 ServerSocketMap prev = perServerSockets.put(id(server), new ServerSocketMap());
81 assert prev == null;
82 add(servers, server);
83 }
84
85 /** Adds a subchannel. */
86 public void addSubchannel(InternalInstrumented<ChannelStats> subchannel) {

Callers 15

setUpMethod · 0.80
populateMethod · 0.80
addNavigableMethod · 0.80
ServerImplMethod · 0.80
getServers_onePageMethod · 0.80
getServerMethod · 0.80
toGetServersResponseMethod · 0.80
toGetServersResponseMethod · 0.80
getServers_onePageMethod · 0.80
getServers_paginateMethod · 0.80
getServers_removeMethod · 0.80

Calls 3

idMethod · 0.95
addMethod · 0.95
putMethod · 0.65

Tested by 10

getServers_onePageMethod · 0.64
getServerMethod · 0.64
toGetServersResponseMethod · 0.64
getServers_onePageMethod · 0.64
getServers_paginateMethod · 0.64
getServers_removeMethod · 0.64
serverSocketMethod · 0.64