com.github.dockerjava.core.command
Class PauseContainerCmdImpl

java.lang.Object
  extended by com.github.dockerjava.core.command.AbstrDockerCmd<PauseContainerCmd,Void>
      extended by com.github.dockerjava.core.command.PauseContainerCmdImpl
All Implemented Interfaces:
DockerCmd<Void>, PauseContainerCmd

public class PauseContainerCmdImpl
extends AbstrDockerCmd<PauseContainerCmd,Void>
implements PauseContainerCmd

Pause a container.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.github.dockerjava.api.command.PauseContainerCmd
PauseContainerCmd.Exec
 
Field Summary
 
Fields inherited from class com.github.dockerjava.core.command.AbstrDockerCmd
execution
 
Constructor Summary
PauseContainerCmdImpl(PauseContainerCmd.Exec exec, String containerId)
           
 
Method Summary
 Void exec()
           
 String getContainerId()
           
 String toString()
           
 PauseContainerCmd withContainerId(String containerId)
           
 
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

PauseContainerCmdImpl

public PauseContainerCmdImpl(PauseContainerCmd.Exec exec,
                             String containerId)
Method Detail

getContainerId

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

withContainerId

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

toString

public String toString()
Overrides:
toString in class Object

exec

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


Copyright © 2014. All rights reserved.