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