com.atlassian.scheduler.core
Class DefaultSchedulerHistoryService
java.lang.Object
com.atlassian.scheduler.core.DefaultSchedulerHistoryService
- All Implemented Interfaces:
- SchedulerHistoryService
public class DefaultSchedulerHistoryService
- extends Object
- implements SchedulerHistoryService
- Since:
- 1.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSchedulerHistoryService
public DefaultSchedulerHistoryService(RunDetailsDao runDetailsDao)
getLastSuccessfulRunForJob
@CheckForNull
public RunDetails getLastSuccessfulRunForJob(@Nonnull
JobId jobId)
- Description copied from interface:
SchedulerHistoryService
- Returns the result of the most recent successful run of this job.
- Specified by:
getLastSuccessfulRunForJob in interface SchedulerHistoryService
- Parameters:
jobId - the job ID of interest
- Returns:
- the result information for the most recent run attempt, or
null if there
is no successful result recorded for this job
getLastRunForJob
@CheckForNull
public RunDetails getLastRunForJob(@Nonnull
JobId jobId)
- Description copied from interface:
SchedulerHistoryService
- Returns the result of the most recent attempt to run this job.
- Specified by:
getLastRunForJob in interface SchedulerHistoryService
- Parameters:
jobId - the job ID of interest
- Returns:
- the result information for the most recent run attempt, or
null if there
is no recorded run history for this job
Copyright © 2014 Atlassian. All Rights Reserved.