public class LogContainerCmdImpl extends AbstrAsyncDockerCmd<LogContainerCmd,Frame> implements LogContainerCmd
LogContainerCmd.Execexecution| 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, execclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecpublic LogContainerCmdImpl(LogContainerCmd.Exec exec, String containerId)
public String getContainerId()
getContainerId in interface LogContainerCmdpublic Integer getTail()
getTail in interface LogContainerCmdpublic Boolean hasFollowStreamEnabled()
hasFollowStreamEnabled in interface LogContainerCmdpublic Boolean hasTimestampsEnabled()
hasTimestampsEnabled in interface LogContainerCmdpublic Boolean hasStdoutEnabled()
hasStdoutEnabled in interface LogContainerCmdpublic Boolean hasStderrEnabled()
hasStderrEnabled in interface LogContainerCmdpublic Integer getSince()
getSince in interface LogContainerCmdpublic LogContainerCmd withContainerId(String containerId)
withContainerId in interface LogContainerCmdpublic LogContainerCmd withFollowStream(Boolean followStream)
LogContainerCmdInputStream 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 LogContainerCmdpublic LogContainerCmd withTimestamps(Boolean timestamps)
withTimestamps in interface LogContainerCmdpublic LogContainerCmd withStdOut(Boolean stdout)
withStdOut in interface LogContainerCmdpublic LogContainerCmd withStdErr(Boolean stderr)
withStdErr in interface LogContainerCmdpublic LogContainerCmd withTailAll()
withTailAll in interface LogContainerCmdpublic LogContainerCmd withTail(Integer tail)
withTail in interface LogContainerCmdpublic LogContainerCmd withSince(Integer since)
withSince in interface LogContainerCmdCopyright © 2017. All Rights Reserved.