com.github.dockerjava.core.command
Class AttachContainerCmdImpl
java.lang.Object
com.github.dockerjava.core.command.AbstrDockerCmd<AttachContainerCmd,InputStream>
com.github.dockerjava.core.command.AttachContainerCmdImpl
- All Implemented Interfaces:
- AttachContainerCmd, DockerCmd<InputStream>
public class AttachContainerCmdImpl
- extends AbstrDockerCmd<AttachContainerCmd,InputStream>
- implements AttachContainerCmd
Attach to container
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttachContainerCmdImpl
public AttachContainerCmdImpl(AttachContainerCmd.Exec exec,
String containerId)
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.