com.github.dockerjava.core.command
Class AttachContainerCmdImpl

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

public class AttachContainerCmdImpl
extends AbstrDockerCmd<AttachContainerCmd,InputStream>
implements AttachContainerCmd

Attach to container


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.github.dockerjava.api.command.AttachContainerCmd
AttachContainerCmd.Exec
 
Field Summary
 
Fields inherited from class com.github.dockerjava.core.command.AbstrDockerCmd
execution
 
Constructor Summary
AttachContainerCmdImpl(AttachContainerCmd.Exec exec, String containerId)
           
 
Method Summary
 InputStream exec()
           
 String getContainerId()
           
 boolean hasFollowStreamEnabled()
           
 boolean hasLogsEnabled()
           
 boolean hasStderrEnabled()
           
 boolean hasStdoutEnabled()
           
 boolean hasTimestampsEnabled()
           
 AttachContainerCmd withContainerId(String containerId)
           
 AttachContainerCmd withFollowStream()
           
 AttachContainerCmd withFollowStream(boolean followStream)
           
 AttachContainerCmd withLogs(boolean logs)
           
 AttachContainerCmd withStdErr()
           
 AttachContainerCmd withStdErr(boolean stderr)
           
 AttachContainerCmd withStdOut()
           
 AttachContainerCmd withStdOut(boolean stdout)
           
 AttachContainerCmd 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, toString, wait, wait, wait
 

Constructor Detail

AttachContainerCmdImpl

public AttachContainerCmdImpl(AttachContainerCmd.Exec exec,
                              String containerId)
Method Detail

getContainerId

public String getContainerId()
Specified by:
getContainerId in interface AttachContainerCmd

hasLogsEnabled

public boolean hasLogsEnabled()
Specified by:
hasLogsEnabled in interface AttachContainerCmd

hasFollowStreamEnabled

public boolean hasFollowStreamEnabled()
Specified by:
hasFollowStreamEnabled in interface AttachContainerCmd

hasTimestampsEnabled

public boolean hasTimestampsEnabled()
Specified by:
hasTimestampsEnabled in interface AttachContainerCmd

hasStdoutEnabled

public boolean hasStdoutEnabled()
Specified by:
hasStdoutEnabled in interface AttachContainerCmd

hasStderrEnabled

public boolean hasStderrEnabled()
Specified by:
hasStderrEnabled in interface AttachContainerCmd

withContainerId

public AttachContainerCmd withContainerId(String containerId)
Specified by:
withContainerId in interface AttachContainerCmd

withFollowStream

public AttachContainerCmd withFollowStream()
Specified by:
withFollowStream in interface AttachContainerCmd

withFollowStream

public AttachContainerCmd withFollowStream(boolean followStream)
Specified by:
withFollowStream in interface AttachContainerCmd

withTimestamps

public AttachContainerCmd withTimestamps(boolean timestamps)
Specified by:
withTimestamps in interface AttachContainerCmd

withStdOut

public AttachContainerCmd withStdOut()
Specified by:
withStdOut in interface AttachContainerCmd

withStdOut

public AttachContainerCmd withStdOut(boolean stdout)
Specified by:
withStdOut in interface AttachContainerCmd

withStdErr

public AttachContainerCmd withStdErr()
Specified by:
withStdErr in interface AttachContainerCmd

withStdErr

public AttachContainerCmd withStdErr(boolean stderr)
Specified by:
withStdErr in interface AttachContainerCmd

withLogs

public AttachContainerCmd withLogs(boolean logs)
Specified by:
withLogs in interface AttachContainerCmd

exec

public InputStream exec()
                 throws NotFoundException
Specified by:
exec in interface AttachContainerCmd
Specified by:
exec in interface DockerCmd<InputStream>
Overrides:
exec in class AbstrDockerCmd<AttachContainerCmd,InputStream>
Throws:
NotFoundException - No such container


Copyright © 2014. All rights reserved.