public static class Command.Builder extends ConfigDTO.Builder<Command.Builder>
Constructor and Description |
---|
Builder(java.lang.String name,
java.lang.String user,
java.lang.String version,
CommandStatus status,
java.lang.String executable,
long checkDelay)
Constructor which has required fields.
|
Modifier and Type | Method and Description |
---|---|
Command |
build()
Build the command.
|
Command.Builder |
withMemory(java.lang.Integer memory)
Set the amount of memory (in MB) to default jobs run with this command to use.
|
withConfigs
withSetupFile
withDescription, withTags
withCreated, withId, withUpdated
public Builder(java.lang.String name, java.lang.String user, java.lang.String version, CommandStatus status, java.lang.String executable, 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 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 Command.Builder withMemory(java.lang.Integer memory)
memory
- The default amount of memory (in MB) for jobs to usepublic Command build()