public class JobRequest extends java.lang.Object implements AgentJobRequest, ApiJobRequest
Modifier and Type | Class and Description |
---|---|
static class |
com.netflix.genie.common.internal.dto.v4.CommonRequestImpl.Builder<T extends com.netflix.genie.common.internal.dto.v4.CommonRequestImpl.Builder>
Builder for common request fields.
|
AgentJobRequest.Builder
ApiJobRequest.Builder
Constructor and Description |
---|
JobRequest(java.lang.String requestedId,
ExecutionEnvironment resources,
java.util.List<java.lang.String> commandArgs,
JobMetadata metadata,
ExecutionResourceCriteria criteria,
JobEnvironmentRequest requestedJobEnvironment,
AgentConfigRequest requestedAgentConfig,
JobArchivalDataRequest requestedJobArchivalData)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getCommandArgs()
Get the command arguments a user has requested be appended to a command executable for their job.
|
java.util.Optional<java.lang.String> |
getRequestedId()
Get the ID the user has requested for this resource if one was added.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCriteria, getMetadata, getRequestedAgentConfig, getRequestedJobArchivalData
getCriteria, getMetadata, getRequestedAgentConfig, getRequestedJobArchivalData, getRequestedJobEnvironment
getRequestedId, getResources
public JobRequest(@Nullable java.lang.String requestedId, @Nullable ExecutionEnvironment resources, @Nullable java.util.List<java.lang.String> commandArgs, JobMetadata metadata, ExecutionResourceCriteria criteria, @Nullable JobEnvironmentRequest requestedJobEnvironment, @Nullable AgentConfigRequest requestedAgentConfig, @Nullable JobArchivalDataRequest requestedJobArchivalData)
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 AgentrequestedJobArchivalData
- The optional configuration options for archiving the job folder by the agentpublic java.util.List<java.lang.String> getCommandArgs()
getCommandArgs
in interface AgentJobRequest
getCommandArgs
in interface ApiJobRequest
public java.util.Optional<java.lang.String> getRequestedId()
getRequestedId
in interface CommonRequest
Optional