public interface LogContainerCmd extends DockerCmd<InputStream>
FrameReader
Modifier and Type | Interface and Description |
---|---|
static interface |
LogContainerCmd.Exec |
Modifier and Type | Method and Description |
---|---|
InputStream |
exec()
Its the responsibility of the caller to consume and/or close the
InputStream to prevent connection leaks. |
String |
getContainerId() |
int |
getTail() |
boolean |
hasFollowStreamEnabled() |
boolean |
hasStderrEnabled() |
boolean |
hasStdoutEnabled() |
boolean |
hasTimestampsEnabled() |
LogContainerCmd |
withContainerId(String containerId) |
LogContainerCmd |
withFollowStream()
|
LogContainerCmd |
withFollowStream(boolean followStream)
Following the stream means the resulting
InputStream returned by exec() reads infinitely. |
LogContainerCmd |
withStdErr() |
LogContainerCmd |
withStdErr(boolean stderr) |
LogContainerCmd |
withStdOut() |
LogContainerCmd |
withStdOut(boolean stdout) |
LogContainerCmd |
withTail(int tail) |
LogContainerCmd |
withTailAll() |
LogContainerCmd |
withTimestamps() |
LogContainerCmd |
withTimestamps(boolean timestamps) |
String getContainerId()
int getTail()
boolean hasFollowStreamEnabled()
boolean hasTimestampsEnabled()
boolean hasStdoutEnabled()
boolean hasStderrEnabled()
LogContainerCmd withContainerId(String containerId)
LogContainerCmd withFollowStream()
LogContainerCmd withFollowStream(boolean followStream)
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
!LogContainerCmd withTimestamps()
LogContainerCmd withTimestamps(boolean timestamps)
LogContainerCmd withStdOut()
LogContainerCmd withStdOut(boolean stdout)
LogContainerCmd withStdErr()
LogContainerCmd withStdErr(boolean stderr)
LogContainerCmd withTailAll()
LogContainerCmd withTail(int tail)
InputStream exec() throws NotFoundException
InputStream
to prevent connection leaks.exec
in interface DockerCmd<InputStream>
NotFoundException
- No such containerCopyright © 2015. All Rights Reserved.