org.apache.storm.container.docker

## Class DockerCommand

- java.lang.Object
- - org.apache.storm.container.docker.DockerCommand

- Direct Known Subclasses:
    DockerExecCommand, DockerInspectCommand, DockerPsCommand, DockerRmCommand, DockerRunCommand, DockerStopCommand, DockerWaitCommand

      public abstract class DockerCommand
      extends Object

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `DockerCommand(String command)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | `addCommandArguments(String... arguments)` Add command commandWithArguments.
    `String` | `getCommandOption()` Returns the docker sub-command string being used, e.g ‘run’.
    `String` | `getCommandWithArguments()` Get the full command.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DockerCommand

          protected DockerCommand(String command)

  - ### Method Detail

    - #### getCommandOption

          public final String getCommandOption()

      Returns the docker sub-command string being used, e.g ‘run’.

      Returns:
        the sub-command

    - #### addCommandArguments

          protected final void addCommandArguments(String... arguments)

      Add command commandWithArguments. This method is only meant for use by sub-classes.

      Parameters:
        `arguments` - to be added

    - #### getCommandWithArguments

          public String getCommandWithArguments()

      Get the full command.

      Returns:
        the full command

Copyright © 2021 The Apache Software Foundation. All rights reserved.