com.github.dockerjava.core.command
Class LogContainerCmdImpl

java.lang.Object
  extended by com.github.dockerjava.core.command.AbstrDockerCmd<LogContainerCmd,InputStream>
      extended by com.github.dockerjava.core.command.LogContainerCmdImpl
All Implemented Interfaces:
DockerCmd<InputStream>, LogContainerCmd

public class LogContainerCmdImpl
extends AbstrDockerCmd<LogContainerCmd,InputStream>
implements LogContainerCmd

Get container logs


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.github.dockerjava.api.command.LogContainerCmd
LogContainerCmd.Exec
 
Field Summary
 
Fields inherited from class com.github.dockerjava.core.command.AbstrDockerCmd
execution
 
Constructor Summary
LogContainerCmdImpl(LogContainerCmd.Exec exec, String containerId)
           
 
Method Summary
 InputStream exec()
           
 String getContainerId()
           
 int getTail()
           
 boolean hasFollowStreamEnabled()
           
 boolean hasStderrEnabled()
           
 boolean hasStdoutEnabled()
           
 boolean hasTimestampsEnabled()
           
 String toString()
           
 LogContainerCmd withContainerId(String containerId)
           
 LogContainerCmd withFollowStream()
           
 LogContainerCmd withFollowStream(boolean followStream)
           
 LogContainerCmd withStdErr()
           
 LogContainerCmd withStdErr(boolean stderr)
           
 LogContainerCmd withStdOut()
           
 LogContainerCmd withStdOut(boolean stdout)
           
 LogContainerCmd withTail(int tail)
           
 LogContainerCmd withTailAll()
           
 LogContainerCmd withTimestamps()
           
 LogContainerCmd withTimestamps(boolean timestamps)
           
 
Methods inherited from class com.github.dockerjava.core.command.AbstrDockerCmd
toDockerException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogContainerCmdImpl

public LogContainerCmdImpl(LogContainerCmd.Exec exec,
                           String containerId)
Method Detail

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.