@Validated
public interface JobKillService
| Modifier and Type | Method and Description |
|---|---|
void |
killJob(@NotBlank(message="No id entered. Unable to kill job.") java.lang.String id,
@NotBlank(message="No reason provided.") java.lang.String reason,
javax.servlet.http.HttpServletRequest request)
Kill the job with the given id if possible.
|
void killJob(@NotBlank(message="No id entered. Unable to kill job.")
@NotBlank(message="No id entered. Unable to kill job.") java.lang.String id,
@NotBlank(message="No reason provided.")
@NotBlank(message="No reason provided.") java.lang.String reason,
@Nullable
javax.servlet.http.HttpServletRequest request)
throws com.netflix.genie.common.internal.exceptions.unchecked.GenieJobNotFoundException,
com.netflix.genie.common.exceptions.GenieServerException
id - id of job to killreason - brief reason for requesting the job be killedrequest - The optional HttpServletRequest information if the request needs to be forwardedcom.netflix.genie.common.internal.exceptions.unchecked.GenieJobNotFoundException - When a job identified by jobId can't be found in the systemcom.netflix.genie.common.exceptions.GenieServerException - if there is an unrecoverable error in the internal state of the Genie cluster