(Duration timeout)
| 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()); |
no test coverage detected