com.github.dockerjava.core.command
Class TopContainerCmdImpl
java.lang.Object
com.github.dockerjava.core.command.AbstrDockerCmd<TopContainerCmd,TopContainerResponse>
com.github.dockerjava.core.command.TopContainerCmdImpl
- All Implemented Interfaces:
- DockerCmd<TopContainerResponse>, TopContainerCmd
public class TopContainerCmdImpl
- extends AbstrDockerCmd<TopContainerCmd,TopContainerResponse>
- implements TopContainerCmd
List processes running inside a container
TopContainerCmdImpl
public TopContainerCmdImpl(TopContainerCmd.Exec exec,
String containerId)
getContainerId
public String getContainerId()
- Specified by:
getContainerId
in interface TopContainerCmd
getPsArgs
public String getPsArgs()
- Specified by:
getPsArgs
in interface TopContainerCmd
withContainerId
public TopContainerCmd withContainerId(String containerId)
- Specified by:
withContainerId
in interface TopContainerCmd
withPsArgs
public TopContainerCmd withPsArgs(String psArgs)
- Specified by:
withPsArgs
in interface TopContainerCmd
toString
public String toString()
- Overrides:
toString
in class Object
exec
public TopContainerResponse exec()
throws NotFoundException
- Specified by:
exec
in interface DockerCmd<TopContainerResponse>
- Specified by:
exec
in interface TopContainerCmd
- Overrides:
exec
in class AbstrDockerCmd<TopContainerCmd,TopContainerResponse>
- Throws:
NotFoundException
- No such container
Copyright © 2014. All Rights Reserved.