public class RestartContainerCmdImpl extends AbstrDockerCmd<RestartContainerCmd,Void> implements RestartContainerCmd
RestartContainerCmd.Execexecution| Constructor and Description |
|---|
RestartContainerCmdImpl(RestartContainerCmd.Exec exec,
String containerId) |
| Modifier and Type | Method and Description |
|---|---|
Void |
exec() |
String |
getContainerId() |
Integer |
getTimeout() |
RestartContainerCmd |
withContainerId(String containerId) |
RestartContainerCmd |
withtTimeout(Integer timeout) |
close, registryAuth, toStringpublic RestartContainerCmdImpl(RestartContainerCmd.Exec exec, String containerId)
public String getContainerId()
getContainerId in interface RestartContainerCmdpublic Integer getTimeout()
getTimeout in interface RestartContainerCmdpublic RestartContainerCmd withContainerId(String containerId)
withContainerId in interface RestartContainerCmdpublic RestartContainerCmd withtTimeout(Integer timeout)
withtTimeout in interface RestartContainerCmdpublic Void exec() throws NotFoundException
exec in interface RestartContainerCmdexec in interface SyncDockerCmd<Void>exec in class AbstrDockerCmd<RestartContainerCmd,Void>NotFoundException - No such containerCopyright © 2017. All Rights Reserved.