public class ExecStartCmdImpl extends AbstrDockerCmd<ExecStartCmd,InputStream> implements ExecStartCmd
ExecStartCmd.Exec
execution
Constructor and Description |
---|
ExecStartCmdImpl(ExecStartCmd.Exec exec,
String execId) |
Modifier and Type | Method and Description |
---|---|
InputStream |
exec()
Its the responsibility of the caller to consume and/or close the
InputStream to prevent connection leaks. |
String |
getExecId() |
boolean |
hasDetachEnabled() |
boolean |
hasTtyEnabled() |
ExecStartCmd |
withDetach() |
ExecStartCmd |
withDetach(boolean detach) |
ExecStartCmd |
withExecId(String execId) |
ExecStartCmd |
withTty() |
ExecStartCmd |
withTty(boolean tty) |
close, registryAuth
public ExecStartCmdImpl(ExecStartCmd.Exec exec, String execId)
public String getExecId()
getExecId
in interface ExecStartCmd
public ExecStartCmd withExecId(String execId)
withExecId
in interface ExecStartCmd
public boolean hasDetachEnabled()
hasDetachEnabled
in interface ExecStartCmd
public boolean hasTtyEnabled()
hasTtyEnabled
in interface ExecStartCmd
public ExecStartCmd withDetach(boolean detach)
withDetach
in interface ExecStartCmd
public ExecStartCmd withTty(boolean tty)
withTty
in interface ExecStartCmd
public ExecStartCmd withDetach()
withDetach
in interface ExecStartCmd
public ExecStartCmd withTty()
withTty
in interface ExecStartCmd
public InputStream exec() throws NotFoundException
ExecStartCmd
InputStream
to prevent connection leaks.exec
in interface ExecStartCmd
exec
in interface SyncDockerCmd<InputStream>
exec
in class AbstrDockerCmd<ExecStartCmd,InputStream>
NotFoundException
- No such exec instanceCopyright © 2015. All Rights Reserved.