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

Method execute

java/src/org/openqa/selenium/grid/commands/Hub.java:223–240  ·  view source on GitHub ↗
(Config config)

Source from the content-addressed store, hash-verified

221 }
222
223 @Override
224 protected void execute(Config config) {
225 Require.nonNull("Config", config);
226
227 config
228 .get("server", "max-threads")
229 .ifPresent(value ->
230 LOG.log(
231 Level.WARNING,
232 () ->
233 "Support for max-threads flag is deprecated. The intent of the flag is to"
234 + " set the thread pool size in the Distributor. Please use"
235 + " newsession-threadpool-size flag instead."));
236
237 Server<?> server = asServer(config).start();
238
239 LOG.info(String.format("Started Selenium Hub %s: %s", getServerVersion(), server.getUrl()));
240 }
241
242 private String getServerVersion() {
243 BuildInfo info = new BuildInfo();

Callers

nothing calls this directly

Calls 9

nonNullMethod · 0.95
getServerVersionMethod · 0.95
getMethod · 0.65
logMethod · 0.65
startMethod · 0.65
getUrlMethod · 0.65
asServerMethod · 0.45
infoMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected