public class JobSpecification
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JobSpecification.ExecutionResource
Common representation of resources used for job execution e.g.
|
| Constructor and Description |
|---|
JobSpecification(java.util.List<java.lang.String> commandArgs,
JobSpecification.ExecutionResource job,
JobSpecification.ExecutionResource cluster,
JobSpecification.ExecutionResource command,
java.util.List<JobSpecification.ExecutionResource> applications,
java.util.Map<java.lang.String,java.lang.String> environmentVariables,
boolean interactive,
java.io.File jobDirectoryLocation,
java.lang.String archiveLocation)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<JobSpecification.ExecutionResource> |
getApplications()
Returns an unmodifiable list of applications.
|
java.util.Optional<java.lang.String> |
getArchiveLocation()
Get the archive location for the job folder.
|
java.util.List<java.lang.String> |
getCommandArgs()
Returns an unmodifiable list of the command args for this job specification.
|
java.util.Map<java.lang.String,java.lang.String> |
getEnvironmentVariables()
Get the environment variables dictated by the server that should be set in the job execution environment.
|
public JobSpecification(@Nullable
java.util.List<java.lang.String> commandArgs,
JobSpecification.ExecutionResource job,
JobSpecification.ExecutionResource cluster,
JobSpecification.ExecutionResource command,
@Nullable
java.util.List<JobSpecification.ExecutionResource> applications,
@Nullable
java.util.Map<java.lang.String,java.lang.String> environmentVariables,
boolean interactive,
java.io.File jobDirectoryLocation,
@Nullable
java.lang.String archiveLocation)
commandArgs - Any command arguments for the job. Optional. Any blanks will be removedjob - The execution resources for a specific jobcluster - The execution resources for a specific cluster used for a jobcommand - The execution resources for a specific command used for a jobapplications - The execution resources of all applications used for a job. OptionalenvironmentVariables - The environment variables the agent should set when running the job. Optionalinteractive - Whether the job is interactive or notjobDirectoryLocation - Location on disk where the job directory will be createdarchiveLocation - Location where job folder is archived by the agent when job finishes. Optionalpublic java.util.List<java.lang.String> getCommandArgs()
public java.util.List<JobSpecification.ExecutionResource> getApplications()
public java.util.Map<java.lang.String,java.lang.String> getEnvironmentVariables()
public java.util.Optional<java.lang.String> getArchiveLocation()
Optional