public class JobRequest extends java.lang.Object implements AgentJobRequest, ApiJobRequest
| Modifier and Type | Class and Description |
|---|---|
static class |
com.netflix.genie.common.external.dtos.v4.CommonRequestImpl.Builder<T extends com.netflix.genie.common.external.dtos.v4.CommonRequestImpl.Builder>
Builder for common request fields.
|
AgentJobRequest.BuilderApiJobRequest.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)
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, waitgetCriteria, getMetadata, getRequestedAgentConfiggetCriteria, getMetadata, getRequestedAgentConfig, getRequestedJobEnvironmentgetRequestedId, getResourcespublic 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)
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 Agentpublic java.util.List<java.lang.String> getCommandArgs()
getCommandArgs in interface AgentJobRequestgetCommandArgs in interface ApiJobRequestpublic java.util.Optional<java.lang.String> getRequestedId()
getRequestedId in interface CommonRequestOptional