@Validated
public interface JobSubmitterService
| Modifier and Type | Method and Description |
|---|---|
void |
submitJob(JobRequest jobRequest,
Cluster cluster,
Command command,
java.util.List<Application> applications,
int memory)
Submit the job for appropriate execution based on environment.
|
void submitJob(@NotNull(message="No job provided. Unable to submit job for execution.")
JobRequest jobRequest,
@NotNull(message="No cluster provided. Unable to submit job for execution")
Cluster cluster,
@NotNull(message="No command provided. Unable to submit job for execution")
Command command,
@NotNull(message="No applications provided. Unable to execute")
java.util.List<Application> applications,
@Min(value=1L,message="Memory can\'t be less than 1 MB")
int memory)
throws GenieException
jobRequest - of job to runcluster - The cluster this job should run oncommand - the command to run this job withapplications - Any applications that are needed to run the commandmemory - The amount of memory (in MB) to use to run the jobGenieException - if there is an error