MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / stop

Method stop

java/src/org/openqa/selenium/docker/Container.java:50–62  ·  view source on GitHub ↗
(Duration timeout)

Source from the content-addressed store, hash-verified

48 }
49
50 public void stop(Duration timeout) {
51 Require.nonNull("Timeout to wait for", timeout);
52
53 if (this.running) {
54 LOG.info("Stopping container " + getId());
55 try {
56 protocol.stopContainer(id, timeout);
57 this.running = false;
58 } catch (RuntimeException e) {
59 LOG.log(Level.WARNING, "Unable to stop container: " + e.getMessage(), e);
60 }
61 }
62 }
63
64 public ContainerInfo inspect() {
65 LOG.info("Inspecting container " + getId());

Callers 2

applyMethod · 0.95
startVideoContainerMethod · 0.95

Calls 6

nonNullMethod · 0.95
getIdMethod · 0.95
infoMethod · 0.80
stopContainerMethod · 0.65
logMethod · 0.65
getMessageMethod · 0.45

Tested by

no test coverage detected