Package com.netflix.genie.common.dto
Class JobRequest
java.lang.Object
com.netflix.genie.common.dto.BaseDTO
com.netflix.genie.common.dto.CommonDTO
com.netflix.genie.common.dto.ExecutionEnvironmentDTO
com.netflix.genie.common.dto.JobRequest
- All Implemented Interfaces:
Serializable
All information needed to make a request to run a new job.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder to create job requests. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The default number of seconds from start before a job times out. -
Method Summary
Modifier and TypeMethodDescriptionGet the arguments to be put on the command line along with the command executable.getCpu()
Deprecated.Use runtime insteadgetEmail()
Get the email for the user.getGroup()
Get the group the user should be a member of.Get the grouping for this job if there currently is one.Get the grouping instance for this job if there currently is one.Deprecated.Use runtime insteadGet the amount of time requested (in seconds) before this job is timed out on the server.Methods inherited from class com.netflix.genie.common.dto.ExecutionEnvironmentDTO
getSetupFile
Methods inherited from class com.netflix.genie.common.dto.CommonDTO
getDescription, getMetadata
Methods inherited from class com.netflix.genie.common.dto.BaseDTO
getCreated, getId, getUpdated, toString
-
Field Details
-
DEFAULT_TIMEOUT_DURATION
public static final int DEFAULT_TIMEOUT_DURATIONThe default number of seconds from start before a job times out.- See Also:
-
-
Method Details
-
getCommandArgs
Get the arguments to be put on the command line along with the command executable.- Returns:
- The command arguments
-
getGroup
Get the group the user should be a member of.- Returns:
- The group as an optional
-
getEmail
Get the email for the user.- Returns:
- The email address as an Optional
-
getCpu
Deprecated.Use runtime insteadGet the number of CPU's requested to run this job.- Returns:
- The number of CPU's as an Optional
- Since:
- 4.3.0
-
getMemory
Deprecated.Use runtime insteadGet the amount of memory (in MB) requested to run this job with.- Returns:
- The amount of memory as an Optional
- Since:
- 4.3.0
-
getTimeout
Get the amount of time requested (in seconds) before this job is timed out on the server.- Returns:
- The timeout as an Optional
-
getGrouping
Get the grouping for this job if there currently is one.- Returns:
- The grouping
- Since:
- 3.3.0
-
getGroupingInstance
Get the grouping instance for this job if there currently is one.- Returns:
- The grouping instance
- Since:
- 3.3.0
-