Class SimpleDockerCommand
- java.lang.Object
-
- com.oracle.bedrock.runtime.docker.commands.AbstractDockerCommand<SimpleDockerCommand>
-
- com.oracle.bedrock.runtime.docker.commands.SimpleDockerCommand
-
- All Implemented Interfaces:
com.oracle.bedrock.runtime.MetaClass<com.oracle.bedrock.runtime.Application>
public class SimpleDockerCommand extends AbstractDockerCommand<SimpleDockerCommand>
A representation of a generic Docker command.Instances of
SimpleDockerCommandare immutable, methods that add options and configuration to thisSimpleDockerCommandcommand return a new instance of aSimpleDockerCommandcommand with the modifications applied.Copyright (c) 2016. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.- Author:
- Jonathan Knight
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimpleDockerCommandof(String command)Create aSimpleDockerCommandwith the specified command name.SimpleDockerCommandwithCommandArguments(com.oracle.bedrock.runtime.options.Argument... args)Obtain a copy of thisAbstractDockerCommandwith the addition of the specified command argumentsArguments.SimpleDockerCommandwithoutCommandArguments(com.oracle.bedrock.runtime.options.Argument... args)Obtain a copy of thisAbstractDockerCommandwithout the specified command argumentsArguments.-
Methods inherited from class com.oracle.bedrock.runtime.docker.commands.AbstractDockerCommand
getCommandArguments, getImplementationClass, getTimeout, onLaunch, onLaunched, onLaunching, timeoutAfter, timeoutAfter
-
-
-
-
Method Detail
-
withCommandArguments
public SimpleDockerCommand withCommandArguments(com.oracle.bedrock.runtime.options.Argument... args)
Description copied from class:AbstractDockerCommandObtain a copy of thisAbstractDockerCommandwith the addition of the specified command argumentsArguments.Command arguments in Docker come after the command name on the command line, e.g. docker [options...] COMMAND_NAME [args...] Parts of the Docker documentation that refer to these parameters as both arguments and options. In our case we refer to them as arguments and the are applied after the command name on the command line.
- Specified by:
withCommandArgumentsin classAbstractDockerCommand<SimpleDockerCommand>- Parameters:
args- the additionalArguments- Returns:
- a copy of this
AbstractDockerCommandwith the addition of the specifiedArguments
-
withoutCommandArguments
public SimpleDockerCommand withoutCommandArguments(com.oracle.bedrock.runtime.options.Argument... args)
Description copied from class:AbstractDockerCommandObtain a copy of thisAbstractDockerCommandwithout the specified command argumentsArguments.Command arguments in Docker come after the command name on the command line, e.g. docker [options...] COMMAND_NAME [args...] Parts of the Docker documentation that refer to these parameters as both arguments and options. In our case we refer to them as arguments and the are applied after the command name on the command line.
- Specified by:
withoutCommandArgumentsin classAbstractDockerCommand<SimpleDockerCommand>- Parameters:
args- the additionalArguments- Returns:
- a copy of this
AbstractDockerCommandwithout the specifiedArguments
-
of
public static SimpleDockerCommand of(String command)
Create aSimpleDockerCommandwith the specified command name.- Parameters:
command- the name of the command- Returns:
- a
SimpleDockerCommandwith the specified command name
-
-