public class DefaultSchedulerHistoryService extends Object implements SchedulerHistoryService
| Constructor and Description |
|---|
DefaultSchedulerHistoryService(RunDetailsDao runDetailsDao) |
| Modifier and Type | Method and Description |
|---|---|
RunDetails |
getLastRunForJob(JobId jobId)
Returns the result of the most recent attempt to run this job.
|
RunDetails |
getLastSuccessfulRunForJob(JobId jobId)
Returns the result of the most recent successful run of this job.
|
public DefaultSchedulerHistoryService(RunDetailsDao runDetailsDao)
@CheckForNull public RunDetails getLastSuccessfulRunForJob(JobId jobId)
SchedulerHistoryServicegetLastSuccessfulRunForJob in interface SchedulerHistoryServicejobId - the job ID of interestnull if there
is no successful result recorded for this job@CheckForNull public RunDetails getLastRunForJob(JobId jobId)
SchedulerHistoryServicegetLastRunForJob in interface SchedulerHistoryServicejobId - the job ID of interestnull if there
is no recorded run history for this jobCopyright © 2017 Atlassian. All rights reserved.