com.github.dockerjava.core.command
Class TopContainerCmdImpl

java.lang.Object
  extended by com.github.dockerjava.core.command.AbstrDockerCmd<TopContainerCmd,TopContainerResponse>
      extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.github.dockerjava.api.command.TopContainerCmd
TopContainerCmd.Exec
 
Field Summary
 
Fields inherited from class com.github.dockerjava.core.command.AbstrDockerCmd
execution
 
Constructor Summary
TopContainerCmdImpl(TopContainerCmd.Exec exec, String containerId)
           
 
Method Summary
 TopContainerResponse exec()
           
 String getContainerId()
           
 String getPsArgs()
           
 String toString()
           
 TopContainerCmd withContainerId(String containerId)
           
 TopContainerCmd withPsArgs(String psArgs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TopContainerCmdImpl

public TopContainerCmdImpl(TopContainerCmd.Exec exec,
                           String containerId)
Method Detail

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.