@@ -43,12 +43,14 @@ public class Node {
43
43
private final Map <Session , Slot > activeSessions ;
44
44
private final String version ;
45
45
private final OsInfo osInfo ;
46
+ private final int slotCount ;
46
47
47
48
48
49
public Node (NodeId id ,
49
50
URI uri ,
50
51
Availability status ,
51
52
int maxSession ,
53
+ int slotCount ,
52
54
Map <Capabilities , Integer > stereotypes ,
53
55
Map <Session , Slot > activeSessions ,
54
56
String version ,
@@ -57,6 +59,7 @@ public Node(NodeId id,
57
59
this .uri = Require .nonNull ("Node uri" , uri );
58
60
this .status = status ;
59
61
this .maxSession = maxSession ;
62
+ this .slotCount = slotCount ;
60
63
this .stereotypes = Require .nonNull ("Node stereotypes" , stereotypes );
61
64
this .activeSessions = Require .nonNull ("Active sessions" , activeSessions );
62
65
this .version = Require .nonNull ("Grid Node version" , version );
@@ -69,6 +72,10 @@ public List<org.openqa.selenium.grid.graphql.Session> getSessions() {
69
72
.collect (ImmutableList .toImmutableList ());
70
73
}
71
74
75
+ public int getSlotCount () {
76
+ return slotCount ;
77
+ }
78
+
72
79
public int getSessionCount () {
73
80
return activeSessions .size ();
74
81
}
0 commit comments