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

Method getDocker

java/src/org/openqa/selenium/docker/Docker.java:93–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91 }
92
93 private Optional<DockerProtocol> getDocker() {
94 if (dockerClient.isPresent()) {
95 return dockerClient;
96 }
97
98 synchronized (this) {
99 if (dockerClient.isEmpty()) {
100 VersionCommand versionCommand = new VersionCommand(client);
101 dockerClient =
102 apiVersion != null
103 ? versionCommand.getDockerProtocol(apiVersion)
104 : versionCommand.getDockerProtocol();
105 }
106 }
107
108 return dockerClient;
109 }
110}

Callers 5

isSupportedMethod · 0.95
getVersionMethod · 0.95
getImageMethod · 0.95
createMethod · 0.95
inspectMethod · 0.95

Calls 3

getDockerProtocolMethod · 0.95
isPresentMethod · 0.65
isEmptyMethod · 0.45

Tested by

no test coverage detected