public class JobKillServiceImpl extends java.lang.Object implements JobKillService
| Constructor and Description |
|---|
JobKillServiceImpl(JobKillServiceV3 jobKillServiceV3,
JobKillServiceV4 jobKillServiceV4,
JobPersistenceService jobPersistenceService)
Constructor.
|
| 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)
Kill the job with the given id if possible.
|
public JobKillServiceImpl(JobKillServiceV3 jobKillServiceV3, JobKillServiceV4 jobKillServiceV4, JobPersistenceService jobPersistenceService)
jobKillServiceV3 - Service to kill V3 jobs.jobKillServiceV4 - Service to kill V4 jobs.jobPersistenceService - Job persistence servicepublic 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)
throws GenieException
killJob in interface JobKillServiceid - id of job to killreason - brief reason for requesting the job be killedGenieException - if there is an error