com.github.dockerjava.core.command
Class RemoveContainerCmdImpl

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

public class RemoveContainerCmdImpl
extends AbstrDockerCmd<RemoveContainerCmd,Void>
implements RemoveContainerCmd

Remove a container.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.github.dockerjava.api.command.RemoveContainerCmd
RemoveContainerCmd.Exec
 
Field Summary
 
Fields inherited from class com.github.dockerjava.core.command.AbstrDockerCmd
execution
 
Constructor Summary
RemoveContainerCmdImpl(RemoveContainerCmd.Exec exec, String containerId)
           
 
Method Summary
 Void exec()
           
 String getContainerId()
           
 boolean hasForceEnabled()
           
 boolean hasRemoveVolumesEnabled()
           
 String toString()
           
 RemoveContainerCmd withContainerId(String containerId)
           
 RemoveContainerCmd withForce()
           
 RemoveContainerCmd withForce(boolean force)
           
 RemoveContainerCmd withRemoveVolumes(boolean removeVolumes)
           
 
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

RemoveContainerCmdImpl

public RemoveContainerCmdImpl(RemoveContainerCmd.Exec exec,
                              String containerId)
Method Detail

getContainerId

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

hasRemoveVolumesEnabled

public boolean hasRemoveVolumesEnabled()
Specified by:
hasRemoveVolumesEnabled in interface RemoveContainerCmd

hasForceEnabled

public boolean hasForceEnabled()
Specified by:
hasForceEnabled in interface RemoveContainerCmd

withContainerId

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

withRemoveVolumes

public RemoveContainerCmd withRemoveVolumes(boolean removeVolumes)
Specified by:
withRemoveVolumes in interface RemoveContainerCmd

withForce

public RemoveContainerCmd withForce()
Specified by:
withForce in interface RemoveContainerCmd

withForce

public RemoveContainerCmd withForce(boolean force)
Specified by:
withForce in interface RemoveContainerCmd

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 RemoveContainerCmd
Overrides:
exec in class AbstrDockerCmd<RemoveContainerCmd,Void>
Throws:
NotFoundException - No such container


Copyright © 2014. All rights reserved.