public class AttachContainerCmdImpl extends AbstrAsyncDockerCmd<AttachContainerCmd,Frame> implements AttachContainerCmd
AttachContainerCmd.Exec
execution
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, exec
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exec
public AttachContainerCmdImpl(AttachContainerCmd.Exec exec, String containerId)
public String getContainerId()
getContainerId
in interface AttachContainerCmd
public Boolean hasLogsEnabled()
hasLogsEnabled
in interface AttachContainerCmd
public Boolean hasFollowStreamEnabled()
hasFollowStreamEnabled
in interface AttachContainerCmd
public Boolean hasTimestampsEnabled()
hasTimestampsEnabled
in interface AttachContainerCmd
public Boolean hasStdoutEnabled()
hasStdoutEnabled
in interface AttachContainerCmd
public Boolean hasStderrEnabled()
hasStderrEnabled
in interface AttachContainerCmd
public InputStream getStdin()
getStdin
in interface AttachContainerCmd
public AttachContainerCmd withContainerId(String containerId)
withContainerId
in interface AttachContainerCmd
public AttachContainerCmd withFollowStream(Boolean followStream)
AttachContainerCmd
InputStream
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 AttachContainerCmd
public AttachContainerCmd withTimestamps(Boolean timestamps)
withTimestamps
in interface AttachContainerCmd
public AttachContainerCmd withStdOut(Boolean stdout)
withStdOut
in interface AttachContainerCmd
public AttachContainerCmd withStdErr(Boolean stderr)
withStdErr
in interface AttachContainerCmd
public AttachContainerCmd withStdIn(InputStream stdin)
withStdIn
in interface AttachContainerCmd
public AttachContainerCmd withLogs(Boolean logs)
withLogs
in interface AttachContainerCmd
Copyright © 2017. All Rights Reserved.