com.github.dockerjava.core.command
Class LogContainerCmdImpl
java.lang.Object
com.github.dockerjava.core.command.AbstrDockerCmd<LogContainerCmd,InputStream>
com.github.dockerjava.core.command.LogContainerCmdImpl
- All Implemented Interfaces:
- DockerCmd<InputStream>, LogContainerCmd
public class LogContainerCmdImpl
- extends AbstrDockerCmd<LogContainerCmd,InputStream>
- implements LogContainerCmd
Get container logs
LogContainerCmdImpl
public LogContainerCmdImpl(LogContainerCmd.Exec exec,
String containerId)
getContainerId
public String getContainerId()
- Specified by:
getContainerId
in interface LogContainerCmd
getTail
public int getTail()
- Specified by:
getTail
in interface LogContainerCmd
hasFollowStreamEnabled
public boolean hasFollowStreamEnabled()
- Specified by:
hasFollowStreamEnabled
in interface LogContainerCmd
hasTimestampsEnabled
public boolean hasTimestampsEnabled()
- Specified by:
hasTimestampsEnabled
in interface LogContainerCmd
hasStdoutEnabled
public boolean hasStdoutEnabled()
- Specified by:
hasStdoutEnabled
in interface LogContainerCmd
hasStderrEnabled
public boolean hasStderrEnabled()
- Specified by:
hasStderrEnabled
in interface LogContainerCmd
withContainerId
public LogContainerCmd withContainerId(String containerId)
- Specified by:
withContainerId
in interface LogContainerCmd
withFollowStream
public LogContainerCmd withFollowStream()
- Specified by:
withFollowStream
in interface LogContainerCmd
withFollowStream
public LogContainerCmd withFollowStream(boolean followStream)
- Specified by:
withFollowStream
in interface LogContainerCmd
withTimestamps
public LogContainerCmd withTimestamps()
- Specified by:
withTimestamps
in interface LogContainerCmd
withTimestamps
public LogContainerCmd withTimestamps(boolean timestamps)
- Specified by:
withTimestamps
in interface LogContainerCmd
withStdOut
public LogContainerCmd withStdOut()
- Specified by:
withStdOut
in interface LogContainerCmd
withStdOut
public LogContainerCmd withStdOut(boolean stdout)
- Specified by:
withStdOut
in interface LogContainerCmd
withStdErr
public LogContainerCmd withStdErr()
- Specified by:
withStdErr
in interface LogContainerCmd
withStdErr
public LogContainerCmd withStdErr(boolean stderr)
- Specified by:
withStdErr
in interface LogContainerCmd
withTailAll
public LogContainerCmd withTailAll()
- Specified by:
withTailAll
in interface LogContainerCmd
withTail
public LogContainerCmd withTail(int tail)
- Specified by:
withTail
in interface LogContainerCmd
toString
public String toString()
- Overrides:
toString
in class Object
exec
public InputStream exec()
throws NotFoundException
- Specified by:
exec
in interface DockerCmd<InputStream>
- Specified by:
exec
in interface LogContainerCmd
- Overrides:
exec
in class AbstrDockerCmd<LogContainerCmd,InputStream>
- Throws:
NotFoundException
- No such container
Copyright © 2014. All rights reserved.