()
| 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 | } |
nothing calls this directly
no test coverage detected