@Validated
public interface JobKillService
| Modifier and Type | Method and Description |
|---|---|
void |
killJob(java.lang.String id,
java.lang.String reason)
Kill the job with the given id if possible.
|
void |
onKillJobEvent(KillJobEvent event)
Listen for events where the system is requesting a certain job be killed.
|
void killJob(@NotBlank(message="No id entered. Unable to kill job.")
java.lang.String id,
@NotBlank(message="No reason provided.")
java.lang.String reason)
throws GenieException
id - id of job to killreason - brief reason for requesting the job be killedGenieException - if there is an error@EventListener
void onKillJobEvent(@NotNull
KillJobEvent event)
throws GenieException
event - The eventGenieException - On any issue during killing