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

Method inspect

java/src/org/openqa/selenium/docker/Docker.java:78–91  ·  view source on GitHub ↗
(ContainerId id)

Source from the content-addressed store, hash-verified

76 }
77
78 public Optional<ContainerInfo> inspect(ContainerId id) {
79 Require.nonNull("Container id", id);
80
81 LOG.fine("Inspecting container with id: " + id);
82
83 if (!getDocker().map(protocol -> protocol.isContainerPresent(id)).orElse(false)) {
84 return Optional.empty();
85 }
86
87 return Optional.of(
88 getDocker()
89 .map(protocol -> protocol.inspectContainer(id))
90 .orElseThrow(() -> new DockerException("Unable to inspect container: " + id)));
91 }
92
93 private Optional<DockerProtocol> getDocker() {
94 if (dockerClient.isPresent()) {

Callers 2

Calls 8

nonNullMethod · 0.95
getDockerMethod · 0.95
fineMethod · 0.80
isContainerPresentMethod · 0.65
inspectContainerMethod · 0.65
mapMethod · 0.45
emptyMethod · 0.45
ofMethod · 0.45

Tested by

no test coverage detected