public final class SingularityBuilder extends CommandBuilder
Constructor and Description |
---|
SingularityBuilder()
Create a new Singularity command builder.
|
SingularityBuilder(String executable)
Create a new Singularity command builder with the specified executable.
|
SingularityBuilder(String executable,
String image)
Create a new Singularity command builder with the specified executable and image.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
build()
Build and return the command for this command builder as a list of strings.
|
protected List<String> |
formatEnvironmentArgument(String variable,
String value)
Format the specified environment variable into a list of string arguments.
|
protected List<String> |
formatEnvironmentVariable(String variable,
String value)
Format the specified environment variable into a list of strings.
|
protected List<String> |
formatImage(String image)
Format the specified environment variable into a list of string arguments.
|
protected List<String> |
formatMount(String source,
String target)
Format the specified mount point into a list of string arguments.
|
protected List<String> |
getContainerCommands()
Return the container commands for this container builder.
|
protected List<String> |
getRemoveArgument()
Return the remove argument for this container builder.
|
add, add, addArgument, addArguments, addArguments, addEnvironment, addEnvironment, addFile, addFiles, addFiles, addMount, addMount, addMounts, getArguments, getEnvironment, getExecutable, getFiles, getFlankSize, getImage, getMounts, getOptFlankSize, getOptTimeout, getSudo, getTimeout, isSudo, reset, setExecutable, setFlankSize, setImage, setSudo, setTimeout, setTimeout
public SingularityBuilder()
public SingularityBuilder(String executable)
executable
- executable, must not be nullprotected List<String> getContainerCommands()
protected List<String> getRemoveArgument()
protected List<String> formatEnvironmentVariable(String variable, String value)
variable
- variablevalue
- valueprotected List<String> formatEnvironmentArgument(String variable, String value)
variable
- variablevalue
- valueprotected List<String> formatImage(String image)
image
- imageprotected List<String> formatMount(String source, String target)
source
- sourcetarget
- targetpublic final List<String> build()
CommandBuilder
build
in class CommandBuilder
Copyright © 2017–2018. All rights reserved.