public static class Command.Builder extends ExecutionEnvironmentDTO.Builder<Command.Builder>
Constructor and Description |
---|
Builder(java.lang.String name,
java.lang.String user,
java.lang.String version,
CommandStatus status,
java.util.List<java.lang.String> executableAndArguments,
long checkDelay)
Constructor with required fields.
|
Builder(java.lang.String name,
java.lang.String user,
java.lang.String version,
CommandStatus status,
java.lang.String executable,
long checkDelay)
Deprecated.
Use
Command.Builder#Builder(String, String, String, CommandStatus, List, long) |
Modifier and Type | Method and Description |
---|---|
Command |
build()
Build the command.
|
Command.Builder |
withExecutable(java.lang.String executable)
Deprecated.
this setter is provided transitionally to make both 'executable' and 'executableAndArguments'
optional for API backward compatibility. The proper way to construct a Command is via the constructor
Command.Builder#Builder(String, String, String, CommandStatus, List, long) . |
Command.Builder |
withExecutableAndArguments(java.util.List<java.lang.String> executableAndArguments)
Deprecated.
this setter is provided transitionally to make both 'executable' and 'executableAndArguments'
optional for API backward compatibility. The proper way to construct a Command is via the constructor
Command.Builder#Builder(String, String, String, CommandStatus, List, long) . |
Command.Builder |
withMemory(java.lang.Integer memory)
Set the amount of memory (in MB) to default jobs run with this command to use.
|
withConfigs, withDependencies, withSetupFile
withDescription, withMetadata, withMetadata, withTags
withCreated, withId, withUpdated
@Deprecated public Builder(java.lang.String name, java.lang.String user, java.lang.String version, CommandStatus status, java.lang.String executable, long checkDelay)
Command.Builder#Builder(String, String, String, CommandStatus, List, long)
name
- The name to use for the Commanduser
- The user to use for the Commandversion
- The version to use for the Commandstatus
- The status of the Commandexecutable
- The executable for the commandcheckDelay
- How long the system should go between checking the status of jobs run with this command.
In milliseconds.public Builder(java.lang.String name, java.lang.String user, java.lang.String version, CommandStatus status, java.util.List<java.lang.String> executableAndArguments, long checkDelay)
name
- The name to use for the Commanduser
- The user to use for the Commandversion
- The version to use for the Commandstatus
- The status of the CommandexecutableAndArguments
- The executable for the command and its fixed argumentscheckDelay
- How long the system should go between checking the status of jobs run with this
command. In milliseconds.public Command.Builder withMemory(@Nullable java.lang.Integer memory)
memory
- The default amount of memory (in MB) for jobs to use@Deprecated public Command.Builder withExecutable(java.lang.String executable)
Command.Builder#Builder(String, String, String, CommandStatus, List, long)
.withExecutableAndArguments(List)
executable
- the executable, possibly followed by arguments@Deprecated public Command.Builder withExecutableAndArguments(@Nullable java.util.List<java.lang.String> executableAndArguments)
Command.Builder#Builder(String, String, String, CommandStatus, List, long)
.executableAndArguments
- the executable and its argumentpublic Command build()