public class AttachContainerCmdImpl extends AbstrAsyncDockerCmd<AttachContainerCmd,Frame> implements AttachContainerCmd
AttachContainerCmd.Execexecution| Constructor and Description |
|---|
AttachContainerCmdImpl(AttachContainerCmd.Exec exec,
String containerId) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContainerId() |
InputStream |
getStdin() |
Boolean |
hasFollowStreamEnabled() |
Boolean |
hasLogsEnabled() |
Boolean |
hasStderrEnabled() |
Boolean |
hasStdoutEnabled() |
Boolean |
hasTimestampsEnabled() |
AttachContainerCmd |
withContainerId(String containerId) |
AttachContainerCmd |
withFollowStream(Boolean followStream)
Following the stream means the resulting
InputStream returned by #exec() reads infinitely. |
AttachContainerCmd |
withLogs(Boolean logs) |
AttachContainerCmd |
withStdErr(Boolean stderr) |
AttachContainerCmd |
withStdIn(InputStream stdin) |
AttachContainerCmd |
withStdOut(Boolean stdout) |
AttachContainerCmd |
withTimestamps(Boolean timestamps) |
close, execclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecpublic AttachContainerCmdImpl(AttachContainerCmd.Exec exec, String containerId)
public String getContainerId()
getContainerId in interface AttachContainerCmdpublic Boolean hasLogsEnabled()
hasLogsEnabled in interface AttachContainerCmdpublic Boolean hasFollowStreamEnabled()
hasFollowStreamEnabled in interface AttachContainerCmdpublic Boolean hasTimestampsEnabled()
hasTimestampsEnabled in interface AttachContainerCmdpublic Boolean hasStdoutEnabled()
hasStdoutEnabled in interface AttachContainerCmdpublic Boolean hasStderrEnabled()
hasStderrEnabled in interface AttachContainerCmdpublic InputStream getStdin()
getStdin in interface AttachContainerCmdpublic AttachContainerCmd withContainerId(String containerId)
withContainerId in interface AttachContainerCmdpublic AttachContainerCmd withFollowStream(Boolean followStream)
AttachContainerCmdInputStream returned by #exec() reads infinitely. So a
InputStream.read() MAY BLOCK FOREVER as long as no data is streamed from the docker host to DockerClient!withFollowStream in interface AttachContainerCmdpublic AttachContainerCmd withTimestamps(Boolean timestamps)
withTimestamps in interface AttachContainerCmdpublic AttachContainerCmd withStdOut(Boolean stdout)
withStdOut in interface AttachContainerCmdpublic AttachContainerCmd withStdErr(Boolean stderr)
withStdErr in interface AttachContainerCmdpublic AttachContainerCmd withStdIn(InputStream stdin)
withStdIn in interface AttachContainerCmdpublic AttachContainerCmd withLogs(Boolean logs)
withLogs in interface AttachContainerCmdCopyright © 2017. All Rights Reserved.