| 1 | package edu.ucsb.cs156.courses.jobs; | |
| 2 | ||
| 3 | import edu.ucsb.cs156.jobs.services.JobContext; | |
| 4 | import edu.ucsb.cs156.jobs.services.JobContextConsumer; | |
| 5 | ||
| 6 | /** A stable name lets concurrent searches recognize the same subject/quarter load. */ | |
| 7 | public record MissingCourseDataJob(String subject, String quarter, JobContextConsumer delegate) | |
| 8 | implements JobContextConsumer { | |
| 9 | @Override | |
| 10 | public String getJobName() { | |
| 11 |
1
1. getJobName : replaced return value with "" for edu/ucsb/cs156/courses/jobs/MissingCourseDataJob::getJobName → KILLED |
return "Load missing course data: " + subject + " " + quarter; |
| 12 | } | |
| 13 | ||
| 14 | @Override | |
| 15 | public void accept(JobContext context) throws Exception { | |
| 16 |
1
1. accept : removed call to edu/ucsb/cs156/jobs/services/JobContextConsumer::accept → KILLED |
delegate.accept(context); |
| 17 | } | |
| 18 | } | |
Mutations | ||
| 11 |
1.1 |
|
| 16 |
1.1 |