com.atlassian.scheduler
Interface SchedulerHistoryService

All Known Implementing Classes:
DefaultSchedulerHistoryService

@PublicApi
public interface SchedulerHistoryService

Allows you to retrieve data about previous runs of a job.


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.
 

Method Detail

getLastRunForJob

@CheckForNull
RunDetails getLastRunForJob(@Nonnull
                                         JobId jobId)
Returns the result of the most recent attempt to run this job.

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

getLastSuccessfulRunForJob

@CheckForNull
RunDetails getLastSuccessfulRunForJob(@Nonnull
                                                   JobId jobId)
Returns the result of the most recent successful run of this job.

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


Copyright © 2014 Atlassian. All Rights Reserved.