public static class CommandRequest.Builder extends com.netflix.genie.common.internal.dto.v4.CommonRequestImpl.Builder<CommandRequest.Builder>
Constructor and Description |
---|
Builder(CommandMetadata metadata,
java.util.List<java.lang.String> executable)
Constructor which has required fields.
|
Modifier and Type | Method and Description |
---|---|
CommandRequest |
build()
Build a new CommandRequest instance.
|
CommandRequest.Builder |
withCheckDelay(java.lang.Long checkDelay)
Set the amount of time (in milliseconds) desired to delay between checks of the job status for jobs run
using this command.
|
CommandRequest.Builder |
withMemory(java.lang.Integer memory)
Set the amount of memory (in MB) to default jobs run with this command to use.
|
public Builder(CommandMetadata metadata, java.util.List<java.lang.String> executable)
metadata
- The user supplied metadata about a command resourceexecutable
- The executable arguments to use on job process launch. Typically the binary path followed
by optional default parameters for that given binary. Must have at least one. Blanks will
be removedpublic CommandRequest.Builder withMemory(@Nullable java.lang.Integer memory)
memory
- The default amount of memory (in MB) for jobs to usepublic CommandRequest.Builder withCheckDelay(@Nullable java.lang.Long checkDelay)
checkDelay
- The amount of time (in milliseconds) between checks. Minimum 1 preferably much morepublic CommandRequest build()