public static class JobExecutionEnvironment.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder(JobRequest request,
Cluster clusterObj,
Command commandObj,
int memory,
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<Application> applications)
Set the applications needed for the jobs' execution.
|
public Builder(@NotNull(message="Job Request cannot be null") JobRequest request, @NotNull(message="Cluster cannot be null") Cluster clusterObj, @NotNull(message="Command cannot be null") 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) throws GenieException
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.GenieException
- If there is an error.public JobExecutionEnvironment.Builder withApplications(java.util.List<Application> applications)
applications
- The list of application objects.public JobExecutionEnvironment build() throws GenieException
GenieException
- If there is any problem.