public class RestartContainerCmdImpl extends AbstrDockerCmd<RestartContainerCmd,Void> implements RestartContainerCmd
RestartContainerCmd.Exec
execution
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, toString
public RestartContainerCmdImpl(RestartContainerCmd.Exec exec, String containerId)
public String getContainerId()
getContainerId
in interface RestartContainerCmd
public Integer getTimeout()
getTimeout
in interface RestartContainerCmd
public RestartContainerCmd withContainerId(String containerId)
withContainerId
in interface RestartContainerCmd
public RestartContainerCmd withtTimeout(Integer timeout)
withtTimeout
in interface RestartContainerCmd
public Void exec() throws NotFoundException
exec
in interface RestartContainerCmd
exec
in interface SyncDockerCmd<Void>
exec
in class AbstrDockerCmd<RestartContainerCmd,Void>
NotFoundException
- No such containerCopyright © 2016. All Rights Reserved.