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.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.scheduler.core.spi.RunDetailsDao
void
|
addRunDetails(JobId arg0, RunDetails arg1)
|
@CheckForNull
RunDetails
|
getLastRunForJob(JobId arg0)
|
@CheckForNull
RunDetails
|
getLastSuccessfulRunForJob(JobId arg0)
|
|
Public Constructors
Public Methods
public
void
addRunDetails
(JobId jobId, RunDetails runDetails)
@Nullable
public
RunDetails
getLastRunForJob
(JobId jobId)
@Nullable
public
RunDetails
getLastSuccessfulRunForJob
(JobId jobId)
public
void
purgeHistory
(Date before)