@Internal
public interface InternalRunDetailsDao
Modifier and Type | Field and Description |
---|---|
static String |
SCHEDULER_RUN_DETAILS |
Modifier and Type | Method and Description |
---|---|
long |
count(Optional<com.atlassian.scheduler.config.JobId> jobId,
long timeToLiveThreshold,
com.atlassian.scheduler.status.RunOutcome runOutcome) |
List<SchedulerRunDetails> |
getRecentRunDetails(ScheduledJobKey key) |
List<SchedulerRunDetails> |
getRecentRunDetails(ScheduledJobKey key,
int limit) |
int |
purgeAll()
This method purges all run details.
|
int |
purgeOldRunDetails(SchedulerRunDetailsPurgeMode purgeMode,
int limit) |
static final String SCHEDULER_RUN_DETAILS
int purgeOldRunDetails(SchedulerRunDetailsPurgeMode purgeMode, int limit)
purgeMode
- the purge mode (ALL or UNSUCCESSFUL)limit
- the number of records to be purgedlong count(Optional<com.atlassian.scheduler.config.JobId> jobId, long timeToLiveThreshold, com.atlassian.scheduler.status.RunOutcome runOutcome)
timeToLiveThreshold
- all job runs that occur before this threshold (from the past to now, in millis) will be includedrunOutcome
- the run outcome that should be matchedint purgeAll()
List<SchedulerRunDetails> getRecentRunDetails(ScheduledJobKey key, int limit)
key
- the key of the scheduled joblimit
- the number of run details to be retrievedList<SchedulerRunDetails> getRecentRunDetails(ScheduledJobKey key)
key
- the key of the scheduled jobScheduledJobStatus
Copyright © 2003–2020 Atlassian. All rights reserved.