public class MemoryRunDetailsDao extends Object implements RunDetailsDao
RunDetailsDao that keeps the scheduler history in memory.
This implementation does not share information across nodes in the cluster or persist it
across restarts, but provides an otherwise functional implementation. By default, each
job's history is expired 30 days after it is last updated.| Constructor and Description |
|---|
MemoryRunDetailsDao() |
MemoryRunDetailsDao(int daysToKeepIdleHistory) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public MemoryRunDetailsDao()
public MemoryRunDetailsDao(int daysToKeepIdleHistory)
public RunDetails getLastRunForJob(JobId jobId)
RunDetailsDaogetLastRunForJob in interface RunDetailsDaojobId - the job ID of interestnull if there
is no recorded run history for this jobpublic RunDetails getLastSuccessfulRunForJob(JobId jobId)
RunDetailsDaogetLastSuccessfulRunForJob in interface RunDetailsDaojobId - the job ID of interestnull if there
is no successful result recorded for this jobpublic void addRunDetails(JobId jobId, RunDetails runDetails)
RunDetailsDaoaddRunDetails in interface RunDetailsDaojobId - the job ID of the job that the scheduler attempted to runrunDetails - the result of the runCopyright © 2017 Atlassian. All rights reserved.