Class DockerExecCommand
- java.lang.Object
-
- org.apache.storm.container.docker.DockerCommand
-
- org.apache.storm.container.docker.DockerExecCommand
-
public class DockerExecCommand extends DockerCommand
Encapsulates the docker exec command and its command line arguments.
-
-
Constructor Summary
Constructors Constructor Description DockerExecCommand(String containerName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DockerExecCommand
addExecCommand(List<String> commandInContainer)
Add the command to run from inside container.String
getCommandWithArguments()
Get the full command.-
Methods inherited from class org.apache.storm.container.docker.DockerCommand
addCommandArguments, getCommandOption
-
-
-
-
Constructor Detail
-
DockerExecCommand
public DockerExecCommand(String containerName)
-
-
Method Detail
-
addExecCommand
public DockerExecCommand addExecCommand(List<String> commandInContainer)
Add the command to run from inside container.- Parameters:
commandInContainer
- the command to run from inside container- Returns:
- the self
-
getCommandWithArguments
public String getCommandWithArguments()
Get the full command.- Overrides:
getCommandWithArguments
in classDockerCommand
- Returns:
- the full command
-
-