Class JobRequest
java.lang.Object
com.netflix.genie.common.internal.dtos.JobRequest
- All Implemented Interfaces:
- AgentJobRequest,- ApiJobRequest,- CommonRequest,- Serializable
All details a user will provide to Genie in order to run a job.
- Since:
- 4.0.0
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.netflix.genie.common.internal.dtos.AgentJobRequestAgentJobRequest.BuilderNested classes/interfaces inherited from interface com.netflix.genie.common.internal.dtos.ApiJobRequestApiJobRequest.Builder
- 
Constructor SummaryConstructorsConstructorDescriptionJobRequest(String requestedId, ExecutionEnvironment resources, List<String> commandArgs, JobMetadata metadata, ExecutionResourceCriteria criteria, JobEnvironmentRequest requestedJobEnvironment, AgentConfigRequest requestedAgentConfig) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionGet the command arguments a user has requested be appended to a command executable for their job.Get the ID the user has requested for this resource if one was added.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.netflix.genie.common.internal.dtos.AgentJobRequestgetCriteria, getMetadata, getRequestedAgentConfigMethods inherited from interface com.netflix.genie.common.internal.dtos.ApiJobRequestgetCriteria, getMetadata, getRequestedAgentConfig, getRequestedJobEnvironmentMethods inherited from interface com.netflix.genie.common.internal.dtos.CommonRequestgetRequestedId, getResources
- 
Constructor Details- 
JobRequestpublic JobRequest(@Nullable String requestedId, @Nullable ExecutionEnvironment resources, @Nullable List<String> commandArgs, JobMetadata metadata, ExecutionResourceCriteria criteria, @Nullable JobEnvironmentRequest requestedJobEnvironment, @Nullable AgentConfigRequest requestedAgentConfig) Constructor.- Parameters:
- requestedId- The requested id of the job if one was provided by the user
- resources- The execution resources (if any) provided by the user
- commandArgs- Any command args provided by the user
- metadata- Any metadata related to the job provided by the user
- criteria- The criteria used by the server to determine execution resources (cluster, command, etc)
- requestedJobEnvironment- The optional job environment request parameters
- requestedAgentConfig- The optional configuration options for the Genie Agent
 
 
- 
- 
Method Details- 
getCommandArgsGet the command arguments a user has requested be appended to a command executable for their job.- Specified by:
- getCommandArgsin interface- AgentJobRequest
- Specified by:
- getCommandArgsin interface- ApiJobRequest
- Returns:
- The command arguments as an immutable list. Any attempt to modify will throw exception
 
- 
getRequestedIdGet the ID the user has requested for this resource if one was added.- Specified by:
- getRequestedIdin interface- CommonRequest
- Returns:
- The ID wrapped in an Optional
 
 
-