|
21 | 21 | import static org.openqa.selenium.grid.node.config.NodeOptions.DEFAULT_DETECT_DRIVERS;
|
22 | 22 | import static org.openqa.selenium.grid.node.config.NodeOptions.DEFAULT_HEARTBEAT_PERIOD;
|
23 | 23 | import static org.openqa.selenium.grid.node.config.NodeOptions.DEFAULT_MAX_SESSIONS;
|
| 24 | +import static org.openqa.selenium.grid.node.config.NodeOptions.DEFAULT_NODE_IMPLEMENTATION; |
24 | 25 | import static org.openqa.selenium.grid.node.config.NodeOptions.DEFAULT_REGISTER_CYCLE;
|
25 | 26 | import static org.openqa.selenium.grid.node.config.NodeOptions.DEFAULT_REGISTER_PERIOD;
|
26 | 27 | import static org.openqa.selenium.grid.node.config.NodeOptions.DEFAULT_SESSION_TIMEOUT;
|
|
42 | 43 | import java.util.List;
|
43 | 44 | import java.util.Set;
|
44 | 45 |
|
45 |
| -@SuppressWarnings("unused") |
| 46 | +@SuppressWarnings({"unused", "FieldMayBeFinal"}) |
46 | 47 | @AutoService(HasRoles.class)
|
47 | 48 | public class NodeFlags implements HasRoles {
|
48 | 49 |
|
@@ -180,6 +181,14 @@ public class NodeFlags implements HasRoles {
|
180 | 181 | @ConfigValue(section = NODE_SECTION, name = "vnc-env-var", example = "START_XVFB")
|
181 | 182 | public String vncEnvVar = DEFAULT_VNC_ENV_VAR;
|
182 | 183 |
|
| 184 | + @Parameter( |
| 185 | + names = {"--node-implementation"}, |
| 186 | + description = "Full classname of non-default Node implementation. This is used to manage " |
| 187 | + + "a session's lifecycle.") |
| 188 | + @ConfigValue(section = NODE_SECTION, name = "implementation", |
| 189 | + example = DEFAULT_NODE_IMPLEMENTATION) |
| 190 | + private String nodeImplementation = DEFAULT_NODE_IMPLEMENTATION; |
| 191 | + |
183 | 192 | @Override
|
184 | 193 | public Set<Role> getRoles() {
|
185 | 194 | return Collections.singleton(NODE_ROLE);
|
|
0 commit comments