@Validated
public interface JobCoordinatorService
Modifier and Type | Method and Description |
---|---|
java.lang.String |
coordinateJob(@NotNull(message="No job request provided. Unable to execute.") @Valid JobRequest jobRequest,
@NotNull(message="No job metadata provided. Unable to execute.") @Valid 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 JobRequest jobRequest, @NotNull(message="No job metadata provided. Unable to execute.") @Valid @NotNull(message="No job metadata provided. Unable to execute.") @Valid JobMetadata jobMetadata) throws GenieException
jobRequest
- of job to killjobMetadata
- Metadata about the http request which generated started this job processGenieException
- if there is an errorvoid killJob(@NotBlank @NotBlank java.lang.String jobId, @NotBlank @NotBlank java.lang.String reason) throws GenieException
jobId
- id of the job to killreason
- brief reason for requesting the job be killedGenieException
- if there is an error