@Validated
public interface JobCoordinatorService
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
coordinateJob(@NotNull(message="No job request provided. Unable to execute.") @Valid com.netflix.genie.common.dto.JobRequest jobRequest,
@NotNull(message="No job metadata provided. Unable to execute.") @Valid com.netflix.genie.common.dto.JobMetadata jobMetadata)
Takes in a Job Request object and does necessary preparation for execution.
|
void |
killJob(@NotBlank java.lang.String jobId,
@NotBlank java.lang.String reason)
Kill the job identified by the given id.
|
java.lang.String coordinateJob(@NotNull(message="No job request provided. Unable to execute.") @Valid
@NotNull(message="No job request provided. Unable to execute.") @Valid com.netflix.genie.common.dto.JobRequest jobRequest,
@NotNull(message="No job metadata provided. Unable to execute.") @Valid
@NotNull(message="No job metadata provided. Unable to execute.") @Valid com.netflix.genie.common.dto.JobMetadata jobMetadata)
throws com.netflix.genie.common.exceptions.GenieException
jobRequest - of job to killjobMetadata - Metadata about the http request which generated started this job processcom.netflix.genie.common.exceptions.GenieException - if there is an errorvoid killJob(@NotBlank
@NotBlank java.lang.String jobId,
@NotBlank
@NotBlank java.lang.String reason)
throws com.netflix.genie.common.exceptions.GenieException
jobId - id of the job to killreason - brief reason for requesting the job be killedcom.netflix.genie.common.exceptions.GenieException - if there is an error