com.atlassian.scheduler.core.spi
Interface RunDetailsDao

All Known Implementing Classes:
MemoryRunDetailsDao, NullRunDetailsDao

public interface RunDetailsDao

Service provided by the host application to persist RunDetails objects.

Since:
v1.0

Method Summary
 void addRunDetails(JobId jobId, RunDetails runDetails)
          Records the result of an attempt to run the specified job.
 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

addRunDetails

void addRunDetails(@Nonnull
                   JobId jobId,
                   @Nonnull
                   RunDetails runDetails)
Records the result of an attempt to run the specified job.

Parameters:
jobId - the job ID of the job that the scheduler attempted to run
runDetails - the result of the run


Copyright © 2014 Atlassian. All Rights Reserved.