public class


extends Object
implements RunDetailsDao
   ↳ com.atlassian.jira.scheduler.OfBizRunDetailsDao

Class Overview

Provides persistence of job status information for atlassian-scheduler.

For now, we will try to keep at most two records per job ID: the most recent run, and if that was not successful then also the most recent run that was successful. We will tolerate duplicates by taking only the most recent run time when duplicates exist.

At startup, any history older than 90 days is automatically purged. At this time, there is no other mechanism in place for automatically trimming the history.


Public Constructors
OfBizRunDetailsDao(EntityEngine entityEngine)
Public Methods
void addRunDetails(JobId jobId, RunDetails runDetails)
List<OfBizRunDetails> getAll()
@Nullable RunDetails getLastRunForJob(JobId jobId)
@Nullable RunDetails getLastSuccessfulRunForJob(JobId jobId)
void purgeHistory(Date before)
void start()
void stop()
Inherited Methods
From class java.lang.Object
From interface com.atlassian.scheduler.core.spi.RunDetailsDao

Public Constructors

public OfBizRunDetailsDao (EntityEngine entityEngine)

Public Methods

public void addRunDetails (JobId jobId, RunDetails runDetails)

public List<OfBizRunDetails> getAll ()

@Nullable public RunDetails getLastRunForJob (JobId jobId)

@Nullable public RunDetails getLastSuccessfulRunForJob (JobId jobId)

public void purgeHistory (Date before)

public void start ()

public void stop ()