@Internal
@Transactional
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) |
default List<SchedulerRunDetails> |
getRecentRunDetails(com.atlassian.scheduler.config.JobId jobId) |
default List<SchedulerRunDetails> |
getRecentRunDetails(com.atlassian.scheduler.config.JobId jobId,
int limit) |
List<SchedulerRunDetails> |
getRecentRunDetails(ScheduledJobKey key)
Deprecated.
since 7.18. To be removed in 8.0. Use
getRecentRunDetails(JobId) |
List<SchedulerRunDetails> |
getRecentRunDetails(ScheduledJobKey key,
int limit)
Deprecated.
since 7.18. To be removed in 8.0. Use
getRecentRunDetails(JobId, int) |
int |
purgeAll()
This method purges all run details.
|
int |
purgeOldRunDetails(SchedulerRunDetailsPurgeMode purgeMode,
int limit) |
static final String SCHEDULER_RUN_DETAILS
@Transactional(propagation=REQUIRES_NEW) 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 matched@Transactional(propagation=REQUIRES_NEW) int purgeAll()
@Deprecated List<SchedulerRunDetails> getRecentRunDetails(ScheduledJobKey key, int limit)
getRecentRunDetails(JobId, int)
key
- the key of the scheduled joblimit
- the number of run details to be retrieveddefault List<SchedulerRunDetails> getRecentRunDetails(com.atlassian.scheduler.config.JobId jobId, int limit)
@Deprecated List<SchedulerRunDetails> getRecentRunDetails(ScheduledJobKey key)
getRecentRunDetails(JobId)
key
- the key of the scheduled jobScheduledJobStatus
default List<SchedulerRunDetails> getRecentRunDetails(com.atlassian.scheduler.config.JobId jobId)
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences