MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / getTotalSlots

Method getTotalSlots

java/src/org/openqa/selenium/grid/graphql/Grid.java:123–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121 }
122
123 public int getTotalSlots() {
124 return distributorStatus.getNodes().stream().mapToInt(status -> status.getSlots().size()).sum();
125 }
126
127 public int getMaxSession() {
128 return distributorStatus.getNodes().stream().mapToInt(NodeStatus::getMaxSessionCount).sum();

Callers

nothing calls this directly

Calls 4

getSlotsMethod · 0.80
streamMethod · 0.45
getNodesMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected