com.atlassian.scheduler.core
Class DefaultSchedulerHistoryService

java.lang.Object
  extended by com.atlassian.scheduler.core.DefaultSchedulerHistoryService
All Implemented Interfaces:
SchedulerHistoryService

public class DefaultSchedulerHistoryService
extends Object
implements SchedulerHistoryService

Since:
1.0

Constructor Summary
DefaultSchedulerHistoryService(RunDetailsDao runDetailsDao)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSchedulerHistoryService

public DefaultSchedulerHistoryService(RunDetailsDao runDetailsDao)
Method Detail

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.