public class LogContainerCmdImpl extends AbstrAsyncDockerCmd<LogContainerCmd,Frame> implements LogContainerCmd
LogContainerCmd.Exec
execution
Constructor and Description |
---|
LogContainerCmdImpl(LogContainerCmd.Exec exec,
String containerId) |
Modifier and Type | Method and Description |
---|---|
String |
getContainerId() |
Integer |
getSince() |
Integer |
getTail() |
Boolean |
hasFollowStreamEnabled() |
Boolean |
hasStderrEnabled() |
Boolean |
hasStdoutEnabled() |
Boolean |
hasTimestampsEnabled() |
String |
toString() |
LogContainerCmd |
withContainerId(String containerId) |
LogContainerCmd |
withFollowStream(Boolean followStream)
Following the stream means the resulting
InputStream returned by #exec() reads infinitely. |
LogContainerCmd |
withSince(Integer since) |
LogContainerCmd |
withStdErr(Boolean stderr) |
LogContainerCmd |
withStdOut(Boolean stdout) |
LogContainerCmd |
withTail(Integer tail) |
LogContainerCmd |
withTailAll() |
LogContainerCmd |
withTimestamps(Boolean timestamps) |
close, exec
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
exec
public LogContainerCmdImpl(LogContainerCmd.Exec exec, String containerId)
public String getContainerId()
getContainerId
in interface LogContainerCmd
public Integer getTail()
getTail
in interface LogContainerCmd
public Boolean hasFollowStreamEnabled()
hasFollowStreamEnabled
in interface LogContainerCmd
public Boolean hasTimestampsEnabled()
hasTimestampsEnabled
in interface LogContainerCmd
public Boolean hasStdoutEnabled()
hasStdoutEnabled
in interface LogContainerCmd
public Boolean hasStderrEnabled()
hasStderrEnabled
in interface LogContainerCmd
public Integer getSince()
getSince
in interface LogContainerCmd
public LogContainerCmd withContainerId(String containerId)
withContainerId
in interface LogContainerCmd
public LogContainerCmd withFollowStream(Boolean followStream)
LogContainerCmd
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 LogContainerCmd
public LogContainerCmd withTimestamps(Boolean timestamps)
withTimestamps
in interface LogContainerCmd
public LogContainerCmd withStdOut(Boolean stdout)
withStdOut
in interface LogContainerCmd
public LogContainerCmd withStdErr(Boolean stderr)
withStdErr
in interface LogContainerCmd
public LogContainerCmd withTailAll()
withTailAll
in interface LogContainerCmd
public LogContainerCmd withTail(Integer tail)
withTail
in interface LogContainerCmd
public LogContainerCmd withSince(Integer since)
withSince
in interface LogContainerCmd
Copyright © 2016. All Rights Reserved.