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

Method getSessions

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

Source from the content-addressed store, hash-verified

142 }
143
144 public List<Session> getSessions() {
145 List<Session> sessions = new ArrayList<>();
146 for (NodeStatus status : distributorStatus.getNodes()) {
147 for (Slot slot : status.getSlots()) {
148 if (slot.getSession() != null && !slot.getSession().getId().equals(RESERVED)) {
149 org.openqa.selenium.grid.data.Session session = slot.getSession();
150 sessions.add(
151 new org.openqa.selenium.grid.graphql.Session(
152 session.getId().toString(),
153 session.getCapabilities(),
154 session.getStartTime(),
155 session.getUri(),
156 status.getNodeId().toString(),
157 status.getExternalUri(),
158 slot));
159 }
160 }
161 }
162 return sessions;
163 }
164}

Callers

nothing calls this directly

Calls 12

getSlotsMethod · 0.80
getIdMethod · 0.65
addMethod · 0.65
toStringMethod · 0.65
getCapabilitiesMethod · 0.65
getStartTimeMethod · 0.65
getUriMethod · 0.65
getNodesMethod · 0.45
getSessionMethod · 0.45
equalsMethod · 0.45
getNodeIdMethod · 0.45
getExternalUriMethod · 0.45

Tested by

no test coverage detected