@Validated
public interface JobSubmitterService
| Modifier and Type | Method and Description |
|---|---|
void |
submitJob(@NotNull(message="No job provided. Unable to submit job for execution.") @Valid JobRequest jobRequest,
@NotNull(message="No cluster provided. Unable to submit job for execution") @Valid Cluster cluster,
@NotNull(message="No command provided. Unable to submit job for execution") @Valid 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)
Submit the job for appropriate execution based on environment.
|
void submitJob(@NotNull(message="No job provided. Unable to submit job for execution.") @Valid
@NotNull(message="No job provided. Unable to submit job for execution.") @Valid JobRequest jobRequest,
@NotNull(message="No cluster provided. Unable to submit job for execution") @Valid
@NotNull(message="No cluster provided. Unable to submit job for execution") @Valid Cluster cluster,
@NotNull(message="No command provided. Unable to submit job for execution") @Valid
@NotNull(message="No command provided. Unable to submit job for execution") @Valid Command command,
@NotNull(message="No applications provided. Unable to execute")
@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")
@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