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 Summary
Nested classes/interfaces inherited from interface com.netflix.genie.common.internal.dtos.AgentJobRequest
AgentJobRequest.Builder
Nested classes/interfaces inherited from interface com.netflix.genie.common.internal.dtos.ApiJobRequest
ApiJobRequest.Builder
-
Constructor Summary
ConstructorDescriptionJobRequest
(String requestedId, ExecutionEnvironment resources, List<String> commandArgs, JobMetadata metadata, ExecutionResourceCriteria criteria, JobEnvironmentRequest requestedJobEnvironment, AgentConfigRequest requestedAgentConfig) Constructor. -
Method Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.netflix.genie.common.internal.dtos.AgentJobRequest
getCriteria, getMetadata, getRequestedAgentConfig
Methods inherited from interface com.netflix.genie.common.internal.dtos.ApiJobRequest
getCriteria, getMetadata, getRequestedAgentConfig, getRequestedJobEnvironment
Methods inherited from interface com.netflix.genie.common.internal.dtos.CommonRequest
getRequestedId, getResources
-
Constructor Details
-
JobRequest
public 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 userresources
- The execution resources (if any) provided by the usercommandArgs
- Any command args provided by the usermetadata
- Any metadata related to the job provided by the usercriteria
- The criteria used by the server to determine execution resources (cluster, command, etc)requestedJobEnvironment
- The optional job environment request parametersrequestedAgentConfig
- The optional configuration options for the Genie Agent
-
-
Method Details
-
getCommandArgs
Get the command arguments a user has requested be appended to a command executable for their job.- Specified by:
getCommandArgs
in interfaceAgentJobRequest
- Specified by:
getCommandArgs
in interfaceApiJobRequest
- Returns:
- The command arguments as an immutable list. Any attempt to modify will throw exception
-
getRequestedId
Get the ID the user has requested for this resource if one was added.- Specified by:
getRequestedId
in interfaceCommonRequest
- Returns:
- The ID wrapped in an
Optional
-