public static class JobExecutionEnvironment.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder(@NotNull(message="Job Request cannot be null") com.netflix.genie.common.dto.JobRequest request,
@NotNull(message="Cluster cannot be null") com.netflix.genie.common.internal.dto.v4.Cluster clusterObj,
@NotNull(message="Command cannot be null") com.netflix.genie.common.internal.dto.v4.Command commandObj,
@Min(value=1L,message="Amount of memory can\'t be less than 1 MB") int memory,
@NotBlank(message="Job working directory cannot be empty") java.io.File dir)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
JobExecutionEnvironment |
build()
Build the job execution environment object.
|
JobExecutionEnvironment.Builder |
withApplications(java.util.List<com.netflix.genie.common.internal.dto.v4.Application> applications)
Set the applications needed for the jobs' execution.
|
public Builder(@NotNull(message="Job Request cannot be null")
@NotNull(message="Job Request cannot be null") com.netflix.genie.common.dto.JobRequest request,
@NotNull(message="Cluster cannot be null")
@NotNull(message="Cluster cannot be null") com.netflix.genie.common.internal.dto.v4.Cluster clusterObj,
@NotNull(message="Command cannot be null")
@NotNull(message="Command cannot be null") com.netflix.genie.common.internal.dto.v4.Command commandObj,
@Min(value=1L,message="Amount of memory can\'t be less than 1 MB")
@Min(value=1L,message="Amount of memory can\'t be less than 1 MB") int memory,
@NotBlank(message="Job working directory cannot be empty")
@NotBlank(message="Job working directory cannot be empty") java.io.File dir)
request - The job request object.clusterObj - The cluster object.commandObj - The command object.memory - The amount of memory (in MB) to use to run the jobdir - The directory location for this job.public JobExecutionEnvironment.Builder withApplications(java.util.List<com.netflix.genie.common.internal.dto.v4.Application> applications)
applications - The list of application objects.public JobExecutionEnvironment build() throws com.netflix.genie.common.exceptions.GenieException
com.netflix.genie.common.exceptions.GenieException - If there is any problem.