|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.scheduler.core.impl.MemoryRunDetailsDao
public class MemoryRunDetailsDao
An implementation of the 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 Summary | |
|---|---|
MemoryRunDetailsDao()
|
|
MemoryRunDetailsDao(int daysToKeepIdleHistory)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MemoryRunDetailsDao()
public MemoryRunDetailsDao(int daysToKeepIdleHistory)
| Method Detail |
|---|
public RunDetails getLastRunForJob(@Nonnull
JobId jobId)
RunDetailsDao
getLastRunForJob in interface RunDetailsDaojobId - the job ID of interest
null if there
is no recorded run history for this job
public RunDetails getLastSuccessfulRunForJob(@Nonnull
JobId jobId)
RunDetailsDao
getLastSuccessfulRunForJob in interface RunDetailsDaojobId - the job ID of interest
null if there
is no successful result recorded for this job
public void addRunDetails(@Nonnull
JobId jobId,
@Nonnull
RunDetails runDetails)
RunDetailsDao
addRunDetails in interface RunDetailsDaojobId - the job ID of the job that the scheduler attempted to runrunDetails - the result of the run
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||