Skip to content

Commit

Permalink
[java] Adding slot matcher flag to Node.
Browse files Browse the repository at this point in the history
Fixes #12964
  • Loading branch information
diemol committed Oct 30, 2023
1 parent b88914b commit ee55ea2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions java/src/org/openqa/selenium/grid/node/config/NodeFlags.java
Expand Up @@ -29,6 +29,7 @@
import static org.openqa.selenium.grid.node.config.NodeOptions.DEFAULT_REGISTER_CYCLE;
import static org.openqa.selenium.grid.node.config.NodeOptions.DEFAULT_REGISTER_PERIOD;
import static org.openqa.selenium.grid.node.config.NodeOptions.DEFAULT_SESSION_TIMEOUT;
import static org.openqa.selenium.grid.node.config.NodeOptions.DEFAULT_SLOT_MATCHER;
import static org.openqa.selenium.grid.node.config.NodeOptions.DEFAULT_USE_SELENIUM_MANAGER;
import static org.openqa.selenium.grid.node.config.NodeOptions.DEFAULT_VNC_ENV_VAR;
import static org.openqa.selenium.grid.node.config.NodeOptions.NODE_SECTION;
Expand Down Expand Up @@ -68,6 +69,15 @@ public class NodeFlags implements HasRoles {
@ConfigValue(section = NODE_SECTION, name = "override-max-sessions", example = "false")
public Boolean overrideMaxSessions = OVERRIDE_MAX_SESSIONS;

@Parameter(
names = {"--slot-matcher"},
description =
"Full classname of non-default slot matcher to use. This is used to determine whether a"
+ " Node can support a particular session. The class provided here should be the same"
+ " as the one used for distributor options")
@ConfigValue(section = "distributor", name = "slot-matcher", example = DEFAULT_SLOT_MATCHER)
private String slotMatcher = DEFAULT_SLOT_MATCHER;

@Parameter(
names = {"--session-timeout"},
description =
Expand Down

0 comments on commit ee55ea2

Please sign in to comment.