public class OfBizRunDetailsDao extends Object implements com.atlassian.scheduler.core.spi.RunDetailsDao
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.
Constructor and Description |
---|
OfBizRunDetailsDao(EntityEngine entityEngine) |
Modifier and Type | Method and Description |
---|---|
void |
addRunDetails(com.atlassian.scheduler.config.JobId jobId,
com.atlassian.scheduler.status.RunDetails runDetails) |
List<OfBizRunDetails> |
getAll() |
com.atlassian.scheduler.status.RunDetails |
getLastRunForJob(com.atlassian.scheduler.config.JobId jobId) |
com.atlassian.scheduler.status.RunDetails |
getLastSuccessfulRunForJob(com.atlassian.scheduler.config.JobId jobId) |
void |
purgeHistory(Date before) |
void |
start() |
void |
stop() |
public OfBizRunDetailsDao(EntityEngine entityEngine)
public void start()
public void stop()
@Nullable public com.atlassian.scheduler.status.RunDetails getLastRunForJob(@Nonnull com.atlassian.scheduler.config.JobId jobId)
getLastRunForJob
in interface com.atlassian.scheduler.core.spi.RunDetailsDao
@Nullable public com.atlassian.scheduler.status.RunDetails getLastSuccessfulRunForJob(@Nonnull com.atlassian.scheduler.config.JobId jobId)
getLastSuccessfulRunForJob
in interface com.atlassian.scheduler.core.spi.RunDetailsDao
public void addRunDetails(@Nonnull com.atlassian.scheduler.config.JobId jobId, @Nonnull com.atlassian.scheduler.status.RunDetails runDetails)
addRunDetails
in interface com.atlassian.scheduler.core.spi.RunDetailsDao
public List<OfBizRunDetails> getAll()
public void purgeHistory(Date before)
Copyright © 2002-2015 Atlassian. All Rights Reserved.